forked from dangowrt/owrt-ubi-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.33 KB
/
blank.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
54
55
56
57
58
name: CI
on:
workflow_dispatch:
inputs:
tag:
description: "tag name"
required: true
type: string
no_release:
description: "no_release"
required: true
type: boolean
push:
# Triggers on every tag starting with v
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libfdt-dev and cmake
run: sudo apt install libfdt-dev cmake squashfs-tools
- name: Run builder script
run: |
mkdir -m 0700 $HOME/.gnupg
bash build_installer.sh
- name: upload-artifact - images
uses: actions/upload-artifact@v4
with:
name: images
path: "*.itb"
release:
if: inputs.no_release == '0'
needs: build
runs-on: ubuntu-latest
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
# https://cli.github.com/manual/gh_release_create
- name: Create Release
run: gh release create ${{ inputs.tag || github.ref_name }}
# https://cli.github.com/manual/gh_release_upload
- name: Upload assets
run: gh release upload ${{ inputs.tag || github.ref_name }} images/*.itb --clobber