Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/publish-to-crates-vip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: publish-to-crates.vip

# Publishes this workspace's crates to the private registry at crates.vip.
#
# The heavy lifting lives in api.crates.vip's reusable workflow: it packages the
# crate, derives the sparse-index entry from `cargo metadata`, and writes both to
# Tigris under conditional requests. Nothing is installed — the runner image
# already ships `aws` and `jq`.
#
# Publishing is manual on purpose. A published version is immutable, and
# `cargo package` embeds the git sha, so a version republished from a different
# commit is refused rather than silently replaced.

on:
workflow_dispatch:
inputs:
dry-run:
description: Derive the index entry and print it, but write nothing
required: false
type: boolean
default: false

jobs:
codegen:
uses: pathscale/crates.vip-backend/.github/workflows/publish-crate.yml@master
with:
manifest-path: codegen/Cargo.toml
dry-run: ${{ inputs.dry-run }}
secrets:
tigris-key-id: ${{ secrets.CRATES_VIP_TIGRIS_KEY_ID }}
tigris-key-secret: ${{ secrets.CRATES_VIP_TIGRIS_KEY_SECRET }}

# `worktable` depends on `worktable_codegen`, so the codegen crate has to be
# resolvable in the registry before this entry is written.
worktable:
needs: codegen
uses: pathscale/crates.vip-backend/.github/workflows/publish-crate.yml@master
with:
manifest-path: Cargo.toml
dry-run: ${{ inputs.dry-run }}
secrets:
tigris-key-id: ${{ secrets.CRATES_VIP_TIGRIS_KEY_ID }}
tigris-key-secret: ${{ secrets.CRATES_VIP_TIGRIS_KEY_SECRET }}
Loading