@@ -18,68 +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 workspace.package.version --raw)" >> "$GITHUB_OUTPUT"
51-
52- - name : Add changes
53- run : git add .
54-
55- - name : Commit
56- id : commit
57- uses : dsanders11/github-app-commit-action@v2
58- with :
59- message : ${{ steps.extract-version.outputs.VERSION }}
60- token : ${{ steps.app-token.outputs.token }}
61-
62- - name : Reset and pull
63- run : git reset --hard && git pull
64-
65- - name : Tag
66- uses : actions/github-script@v9
67- env :
68- GIT_TAG : ${{ steps.extract-version.outputs.VERSION }}
69- GIT_SHA : ${{ steps.commit.outputs.sha }}
70- with :
71- script : |
72- github.rest.git.createRef({
73- owner: context.repo.owner,
74- repo: context.repo.repo,
75- ref: `refs/tags/${process.env.GIT_TAG}`,
76- sha: process.env.GIT_SHA
77- })
78-
79- - name : Release
80- uses : softprops/action-gh-release@v3
81- with :
82- generate_release_notes : true
83- make_latest : true
84- tag_name : ${{ steps.extract-version.outputs.VERSION }}
85- token : ${{ steps.app-token.outputs.token }}
21+ uses : RustForWeb/.github/.github/workflows/release.yml@c18f3b7315df398b6af8d03f823e31daeda63114
22+ with :
23+ bump : ${{ inputs.bump }}
0 commit comments