-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (50 loc) · 1.13 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release Linux
on:
workflow_dispatch:
release:
types: [ created, edited ]
jobs:
#
# Build
#
build:
strategy:
matrix:
dist: [arch,alpine,blueprint]
runs-on: ubuntu-latest
steps:
# Install required tools
- name: Install tools
run: |
sudo env DEBIAN_FRONTEND=noninteractive apt install -y tar xz-utils coreutils
# Download source from repository
- uses: actions/checkout@v4
# Build
- name: Build
run: |
mkdir -p dist
sudo ./deploy/flatimage.sh ${{ matrix.dist }}
cp ./build/dist/* ./dist
# Upload
- name: Upload flatimage
uses: actions/upload-artifact@v3
with:
name: flatimage
path: dist
#
# Release
#
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: flatimage
path: dist
- name: Upload to release
uses: fnkr/github-action-ghr@v1
env:
GHR_PATH: dist/
GHR_REPLACE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}