Skip to content

Commit dd99f24

Browse files
committed
Fix deploy
1 parent c425210 commit dd99f24

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/rust.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Run tests
4343
run: make run-all-tests
4444

45-
deploy:
45+
deploy-rscel:
4646
runs-on: ubuntu-latest
4747
needs: test-all
4848
if: success() && github.ref == 'refs/heads/main'
@@ -59,8 +59,25 @@ jobs:
5959
- name: Copy Readme
6060
run: cp README.md rscel/README.md
6161

62-
- name: publish rscel-macro
63-
run: cargo publish -p rscel-macro --token ${{ secrets.CRATES_IO_API_KEY }}
64-
6562
- name: publish rscel
6663
run: cargo publish -p rscel --token ${{ secrets.CRATES_IO_API_KEY }}
64+
65+
deploy-rscel-macro:
66+
runs-on: ubuntu-latest
67+
needs: test-all
68+
if: success() && github.ref == 'refs/heads/main'
69+
steps:
70+
- uses: actions/checkout@v3
71+
72+
- uses: Swatinem/rust-cache@v2
73+
74+
- uses: actions-rs/toolchain@v1
75+
with:
76+
toolchain: stable
77+
override: true
78+
79+
- name: Copy Readme
80+
run: cp README.md rscel/README.md
81+
82+
- name: publish rscel-macro
83+
run: cargo publish -p rscel-macro --token ${{ secrets.CRATES_IO_API_KEY }}

0 commit comments

Comments
 (0)