Skip to content

Commit 6a3d353

Browse files
committed
Fix script
1 parent d6d891f commit 6a3d353

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Package to pypi
22

33
on:
44
release:
5-
types: [released]
5+
types: [created]
66
workflow_dispatch:
77

88
permissions: write-all
@@ -47,18 +47,17 @@ jobs:
4747
pnpm build
4848
pnpm lint
4949
pnpm test
50-
50+
- name: Publish to cargo
51+
run: |
52+
cd libs/braillify
53+
cargo publish
54+
env:
55+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
5156
- name: Publish to pypi
5257
run: |
5358
cd packages/python
5459
uv publish
5560
env:
5661
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
5762

58-
- name: Publish to cargo
59-
run: |
60-
cd libs/braillify
61-
cargo publish
62-
env:
63-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
6463

0 commit comments

Comments
 (0)