Skip to content

Commit

Permalink
Merge pull request #1071 from pkgxdev/cargo-publish
Browse files Browse the repository at this point in the history
publish pkgx to crates.io
  • Loading branch information
mxcl authored Jan 14, 2025
2 parents 9ec0b63 + 5e08157 commit e994317
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cd.crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: cd·crates

on:
release:
types:
- published
workflow_dispatch:
inputs:
release-id:
required: true

concurrency:
group: cd/crates/${{ github.event.release.tag_name || github.event.inputs.release-id }}
cancel-in-progress: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name || github.event.inputs.release-id }}
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
# TODO: remove --package to publish libpkgx as well
args: --package pkgx --all-features
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit e994317

Please sign in to comment.