Skip to content

Commit 0923ad9

Browse files
committed
feat(ci): add workflow for publishing to crates.io
1 parent 2ddee68 commit 0923ad9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
deploy:
12+
name: Upload to crates.io
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: crates.io
16+
url: https://crates.io/crates/rustpython-unparser
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Publish
20+
run: cargo publish
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)