File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Actions to run when releasing
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ GH_TOKEN : ${{ secrets.RELEASE_TOKEN }}
9+ GITHUB_REF_NAME : ${{ github.ref_name }}
10+
11+ jobs :
12+ # Remark : https://github.com/orgs/community/discussions/46034
13+ add-checksum :
14+ runs-on : ubuntu-latest
15+ steps :
16+ # It is necessary to checkout the repository for GitHub CLI to know which repository to target
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ - name : ZIP checksum
20+ run : |
21+ gh release download --archive=zip
22+ shasum -a 256 *.zip > fesapi-${GITHUB_REF_NAME#v}.zip.sha256.txt
23+ gh release upload ${{ github.ref_name }} fesapi-${GITHUB_REF_NAME#v}.zip.sha256.txt
24+ - name : TAR.GZ checksum
25+ run : |
26+ gh release download --archive=tar.gz
27+ shasum -a 256 *.tar.gz > fesapi-${GITHUB_REF_NAME#v}.tar.gz.sha256.txt
28+ gh release upload ${{ github.ref_name }} fesapi-${GITHUB_REF_NAME#v}.tar.gz.sha256.txt
29+
You can’t perform that action at this time.
0 commit comments