@@ -18,68 +18,7 @@ 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 : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
27- with :
28- client-id : ${{ secrets.APP_ID }}
29- private-key : ${{ secrets.APP_PRIVATE_KEY }}
30-
31- - name : Checkout
32- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33-
34- - name : Set up Rust toolchain
35- uses : actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
36- with :
37- target : wasm32-unknown-unknown
38-
39- - name : Install Cargo Binary Install
40- uses : cargo-bins/cargo-binstall@dc19f1e48450eefe5a29b8da6c6b00a87d730b37 # v1.18.1
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@2bbcd331016d8c950b05a24b56e7eb9cb50d545e # v2.1.0
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@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
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@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
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@373c25f8fd29e10c40f1343f13312f8be3514af0
22+ with :
23+ bump : ${{ inputs.bump }}
24+ target : wasm32-unknown-unknown
0 commit comments