@@ -18,66 +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-
37- - name : Install Cargo Binary Install
38- uses : cargo-bins/cargo-binstall@main
39-
40- - name : Install crates
41- run : cargo binstall --force -y cargo-workspaces toml-cli
42-
43- - name : Bump version
44- run : cargo workspaces version --all --no-git-commit --yes ${{ inputs.bump }}
45-
46- - name : Extract version
47- id : extract-version
48- run : echo "VERSION=v$(toml get Cargo.toml package.version --raw)" >> "$GITHUB_OUTPUT"
49-
50- - name : Add changes
51- run : git add .
52-
53- - name : Commit
54- id : commit
55- uses : dsanders11/github-app-commit-action@v1
56- with :
57- message : ${{ steps.extract-version.outputs.VERSION }}
58- token : ${{ steps.app-token.outputs.token }}
59-
60- - name : Reset and pull
61- run : git reset --hard && git pull
62-
63- - name : Tag
64- uses : actions/github-script@v8
65- env :
66- GIT_TAG : ${{ steps.extract-version.outputs.VERSION }}
67- GIT_SHA : ${{ steps.commit.outputs.sha }}
68- with :
69- script : |
70- github.rest.git.createRef({
71- owner: context.repo.owner,
72- repo: context.repo.repo,
73- ref: `refs/tags/${process.env.GIT_TAG}`,
74- sha: process.env.GIT_SHA
75- })
76-
77- - name : Release
78- uses : softprops/action-gh-release@v2
79- with :
80- generate_release_notes : true
81- make_latest : true
82- tag_name : ${{ steps.extract-version.outputs.VERSION }}
83- token : ${{ steps.app-token.outputs.token }}
21+ uses : RustForWeb/.github/.github/workflows/release.yml@c18f3b7315df398b6af8d03f823e31daeda63114
22+ with :
23+ bump : ${{ inputs.bump }}
0 commit comments