create release automatically
This commit is contained in:
parent
8e51654190
commit
d6ffc7d9be
|
@ -3,7 +3,7 @@ run-name: Build the shimboot disk image for all boards
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
board: [dedede, octopus]
|
board: [dedede, octopus]
|
||||||
|
@ -21,4 +21,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: shimboot_${{ matrix.board }}
|
name: shimboot_${{ matrix.board }}
|
||||||
path: data/shimboot_${{ matrix.board }}.zip
|
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
|
|
@ -68,7 +68,8 @@ safe_mount() {
|
||||||
umount $2 2> /dev/null || /bin/true
|
umount $2 2> /dev/null || /bin/true
|
||||||
rm -rf $2
|
rm -rf $2
|
||||||
mkdir -p $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() {
|
create_partitions() {
|
||||||
|
|
Loading…
Reference in New Issue