Skip to content

Commit

Permalink
ci: spilt upload release to new job
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Mar 23, 2024
1 parent c0c57b7 commit 7732830
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,24 @@ jobs:
mkimg-th1520/SHA256SUMS
mkimg-th1520/SHA512SUMS
upload_release:
needs: mkrootfs
if: startsWith(github.ref, 'refs/tags/')
step:
- name: Download Built Artifacts
uses: actions/download-artifact@v2

- name: Make Checksum file
run: |
find . -name "*.zst" | xargs -I{} cp -av {} .
sha256sum *.zst > SHA256SUMS
sha512sum *.zst > SHA512SUMS
- name: 'Create release by tag'
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mkimg-th1520/*.zst
mkimg-th1520/SHA256SUMS
mkimg-th1520/SHA512SUMS
*.zst
SHA256SUMS
SHA512SUMS
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7732830

Please sign in to comment.