Skip to content

Commit

Permalink
Add auto release on tags, compress output using zstd,
Browse files Browse the repository at this point in the history
  • Loading branch information
nekorouter committed Oct 25, 2023
1 parent 3d5b20d commit 76ea402
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
branches:
- '*'
pull_request:
workflow_dispatch:

Expand All @@ -20,7 +22,6 @@ jobs:
include:
- name: thead-gcc
toolchain_tripe: riscv64-unknown-linux-gnu-
apt_triple: riscv64-linux-gnu # TODO: remove this line

runs-on: ubuntu-22.04
env:
Expand Down Expand Up @@ -92,11 +93,12 @@ jobs:
sudo ./mkrootfs.sh
popd
- name: Make Checksum File
- name: Make Checksum file & Compress files
run: |
pushd mkimg-th1520
sha256sum *.ext4 > SHA256SUMS
sha512sum *.ext4 > SHA512SUMS
zstd *.ext4
popd
- name: 'Upload Artifact'
Expand All @@ -105,6 +107,15 @@ jobs:
retention-days: 30
name: th1520-${{ env.BUILD_ID }}
path: |
mkimg-th1520/*.ext4
mkimg-th1520/*.ext4.zst
mkimg-th1520/SHA256SUMS
mkimg-th1520/SHA512SUMS
- name: 'Create release by tag'
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mkimg-th1520/*.ext4.zst
mkimg-th1520/SHA256SUMS
mkimg-th1520/SHA512SUMS

0 comments on commit 76ea402

Please sign in to comment.