Skip to content

Commit fc729ca

Browse files
Make a seperate job for crate publish
1 parent b7c74b7 commit fc729ca

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
env:
16-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1716
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
1817
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1918
steps:
@@ -69,7 +68,20 @@ jobs:
6968
name: binaries
7069
path: out/ferium*.zip
7170
if-no-files-found: error
72-
71+
72+
publish:
73+
runs-on: ubuntu-latest
74+
needs: build
75+
env:
76+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
77+
steps:
78+
- uses: actions/checkout@v3
79+
- name: Install Rust
80+
uses: actions-rs/toolchain@v1
81+
with:
82+
toolchain: stable
83+
- name: Install dependencies
84+
run: sudo apt-get install librust-gdk-dev
7385
- name: Upload to Crates
7486
uses: actions-rs/cargo@v1
7587
with:

0 commit comments

Comments
 (0)