@@ -18,63 +18,6 @@ permissions:
1818jobs :
1919 release :
2020 name : Release
21- runs-on : ubuntu-latest
22-
23- steps :
24- - name : Generate GitHub App token
25- id : app-token
26- uses : getsentry/action-github-app-token@v3
27- with :
28- app_id : ${{ secrets.APP_ID }}
29- private_key : ${{ secrets.APP_PRIVATE_KEY }}
30-
31- - name : Checkout
32- uses : actions/checkout@v6
33-
34- - name : Set up Rust toolchain
35- uses : actions-rust-lang/setup-rust-toolchain@v1
36- with :
37- target : wasm32-unknown-unknown
38-
39- - name : Install Cargo Binary Install
40- uses : cargo-bins/cargo-binstall@main
41-
42- - name : Install crates
43- run : cargo binstall --force -y cargo-workspaces toml-cli
44-
45- - name : Bump version
46- run : cargo workspaces version --all --no-git-commit --yes ${{ inputs.bump }}
47-
48- - name : Extract version
49- id : extract-version
50- run : echo "VERSION=v$(toml get Cargo.toml package.version --raw)" >> "$GITHUB_OUTPUT"
51-
52- - name : Add changes
53- run : git add .
54-
55- - name : Commit
56- uses : dsanders11/github-app-commit-action@v2
57- with :
58- message : ${{ steps.extract-version.outputs.VERSION }}
59- token : ${{ steps.app-token.outputs.token }}
60-
61- - name : Reset and pull
62- run : git reset --hard && git pull
63-
64- - name : Tag
65- uses : bruno-fs/repo-tagger@1.0.0
66- with :
67- tag : ${{ steps.extract-version.outputs.VERSION }}
68- env :
69- GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
70-
71- - name : Release
72- uses : softprops/action-gh-release@v3
73- with :
74- generate_release_notes : true
75- make_latest : true
76- tag_name : ${{ steps.extract-version.outputs.VERSION }}
77- token : ${{ steps.app-token.outputs.token }}
78-
79- - name : Publish
80- run : cargo workspaces publish --publish-as-is --token "${{ secrets.CRATES_IO_TOKEN }}"
21+ uses : RustForWeb/.github/.github/workflows/release.yml@c18f3b7315df398b6af8d03f823e31daeda63114
22+ with :
23+ bump : ${{ inputs.bump }}
0 commit comments