create release automatically

This commit is contained in:
ading2210 2024-01-25 23:46:10 +00:00
parent 8e51654190
commit d6ffc7d9be
2 changed files with 11 additions and 3 deletions

View File

@ -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
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

View File

@ -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() {