File tree Expand file tree Collapse file tree 2 files changed +40
-35
lines changed Expand file tree Collapse file tree 2 files changed +40
-35
lines changed Original file line number Diff line number Diff line change 4646 id : tag_version
4747 uses :
mathieudutour/[email protected] 4848 with :
49- github_token : ${{ secrets.GITHUB_TOKEN }}
49+ github_token : ${{ secrets.PAT }}
5050 custom_tag : ${{ steps.read_toml.outputs.value }}
5151
5252 - name : Create a GitHub release
5555 tag : ${{ steps.tag_version.outputs.new_tag }}
5656 name : Release ${{ steps.tag_version.outputs.new_tag }}
5757 generateReleaseNotes : true
58+ token : ${{ secrets.PAT }}
5859
59- - name : Output version
60- run : echo "version=${{ steps.tag_version.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
61-
62-
63- upload-assets :
64- needs : release
65- strategy :
66- matrix :
67- include :
68- - target : x86_64-unknown-linux-gnu
69- os : ubuntu-latest
70-
71- - target : x86_64-apple-darwin
72- os : macos-latest
73-
74- - target : aarch64-apple-darwin
75- os : macos-latest
76-
77- - target : x86_64-pc-windows-msvc
78- os : windows-latest
79- runs-on : ${{ matrix.os }}
80- steps :
81- - name : Checkout the repository
82- uses : actions/checkout@v3
83-
84- - name : Build and upload binaries
85- uses : taiki-e/upload-rust-binary-action@v1
86- with :
87- bin : codesnap
88- target : ${{ matrix.target }}
89- tar : unix
90- zip : windows
91- ref : refs/tags/${{ needs.release.outputs.version }}
92- token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Upload binaries to GitHub releases
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ upload-assets :
12+ strategy :
13+ matrix :
14+ include :
15+ - target : x86_64-unknown-linux-gnu
16+ os : ubuntu-latest
17+
18+ - target : x86_64-apple-darwin
19+ os : macos-latest
20+
21+ - target : aarch64-apple-darwin
22+ os : macos-latest
23+
24+ - target : x86_64-pc-windows-msvc
25+ os : windows-latest
26+ runs-on : ${{ matrix.os }}
27+ steps :
28+ - name : Checkout the repository
29+ uses : actions/checkout@v3
30+
31+ - name : Build and upload binaries
32+ uses : taiki-e/upload-rust-binary-action@v1
33+ with :
34+ bin : codesnap
35+ target : ${{ matrix.target }}
36+ tar : unix
37+ zip : windows
38+ token : ${{ secrets.PAT }}
You can’t perform that action at this time.
0 commit comments