Skip to content

Commit e994317

Browse files
authored
Merge pull request #1071 from pkgxdev/cargo-publish
publish pkgx to crates.io
2 parents 9ec0b63 + 5e08157 commit e994317

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/cd.crates.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: cd·crates
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
inputs:
9+
release-id:
10+
required: true
11+
12+
concurrency:
13+
group: cd/crates/${{ github.event.release.tag_name || github.event.inputs.release-id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
publish:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.release.tag_name || github.event.inputs.release-id }}
23+
- uses: dtolnay/rust-toolchain@stable
24+
- uses: katyo/publish-crates@v2
25+
with:
26+
# TODO: remove --package to publish libpkgx as well
27+
args: --package pkgx --all-features
28+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)