Skip to content

Commit f6a6ed7

Browse files
Update release.yml
moved cargo publish to the end hopefully the artifact downloading now works
1 parent 29e5cfe commit f6a6ed7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ jobs:
5959
with:
6060
name: bca-aarch64-macos
6161
path: target/release/bca
62-
publish:
63-
name: Publish to crates.io
64-
runs-on: ubuntu-latest
65-
steps:
66-
- uses: actions/checkout@v4
67-
- name: Publish crate
68-
run: cargo publish --verbose --token ${{ secrets.CARGO_PUBLISH_TOKEN }}
6962
release:
7063
name: Create GitHub Release
7164
runs-on: ubuntu-latest
@@ -83,7 +76,7 @@ jobs:
8376
- name: Download Windows Artifacts
8477
uses: actions/download-artifact@v3
8578
with:
86-
name: bca-x86_64-windows
79+
name: bca-x86_64-windows.exe
8780
- name: Download Intel Mac Artifacts
8881
uses: actions/download-artifact@v3
8982
with:
@@ -100,7 +93,14 @@ jobs:
10093
body_path: RELEASE.md
10194
files: |
10295
bca-x86_64-linux
103-
bca-x86_64-windows
96+
bca-x86_64-windows.exe
10497
bca-x86_64-macos
10598
bca-aarch64-macos
106-
99+
publish:
100+
name: Publish to crates.io
101+
runs-on: ubuntu-latest
102+
needs: release
103+
steps:
104+
- uses: actions/checkout@v4
105+
- name: Publish crate
106+
run: cargo publish --verbose --token ${{ secrets.CARGO_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)