Skip to content

Commit 65037a0

Browse files
committed
Updated release workflow to new publish script
1 parent 18c530e commit 65037a0

File tree

1 file changed

+4
-40
lines changed

1 file changed

+4
-40
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,7 @@ on:
66
- master
77

88
jobs:
9-
version:
10-
name: Get Version
11-
runs-on: ubuntu-latest
12-
outputs:
13-
name: ${{ steps.version.outputs.name }}
14-
version: ${{ steps.version.outputs.version }}
15-
isnew: ${{ steps.version.outputs.isnew }}
16-
ispre: ${{ steps.version.outputs.ispre }}
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v3
20-
- name: Get Version
21-
id: version
22-
uses: bp3d-actions/cargo-version@main
23-
with:
24-
mode: get
25-
token: ${{ secrets.GITHUB_TOKEN }}
26-
27-
create-release:
28-
name: Release
29-
needs: version
30-
if: needs.version.outputs.isnew == 'true' && needs.version.outputs.ispre == 'false'
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v3
35-
- name: Install Rust
36-
uses: dtolnay/rust-toolchain@stable
37-
- name: Setup cargo
38-
run: cargo login ${{ secrets.RELEASE_TOKEN }}
39-
- name: Publish
40-
run: cargo publish
41-
- name: Create
42-
uses: ncipollo/release-action@main
43-
with:
44-
tag: ${{ needs.version.outputs.version }}
45-
commit: ${{ github.ref }}
46-
prerelease: false
47-
name: ${{ needs.version.outputs.name }} release ${{ needs.version.outputs.version }}
48-
body: "[Link to crates.io](https://crates.io/crates/${{ needs.version.outputs.name }})"
9+
Publish:
10+
uses: BlockProject3D/workflows/.github/workflows/Publish.yml@main
11+
secrets:
12+
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)