From d6ffc7d9be8782db6061bcfe56957e9f425582b8 Mon Sep 17 00:00:00 2001 From: ading2210 Date: Thu, 25 Jan 2024 23:46:10 +0000 Subject: [PATCH] create release automatically --- .github/workflows/build-image.yaml | 11 +++++++++-- image_utils.sh | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 5e7e9a7..516b898 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -3,7 +3,7 @@ run-name: Build the shimboot disk image for all boards on: [push] jobs: - main: + build: strategy: matrix: board: [dedede, octopus] @@ -21,4 +21,11 @@ jobs: with: name: shimboot_${{ matrix.board }} path: data/shimboot_${{ matrix.board }}.zip - compression-level: 0 \ No newline at end of file + compression-level: 0 + + - name: create release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: data/shimboot_${{ matrix.board }}.zip \ No newline at end of file diff --git a/image_utils.sh b/image_utils.sh index fb6d241..0ef193a 100755 --- a/image_utils.sh +++ b/image_utils.sh @@ -68,7 +68,8 @@ safe_mount() { umount $2 2> /dev/null || /bin/true rm -rf $2 mkdir -p $2 - mount $1 $2 || mount $1 $2 || mount $1 $2 || mount $1 $2 #try to mount multiple times + #try to mount multiple times + mount $1 $2 || mount $1 $2 || mount $1 $2 || mount $1 $2 } create_partitions() {