forked from luochongjun/gl-sdk-action
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.21 KB
/
set_variable.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
on:
workflow_dispatch:
inputs:
device:
description: 'Select device'
required: true
type: choice
options:
- AXT1800
- MT2500
- SF1200
- SFT1200
sourcecode:
description: 'Source code URL'
required: true
pkgname:
description: 'Openwrt package name'
required: true
email:
description: 'Git accuont email address'
required: false
password:
description: 'Git account password'
required: false
jobs:
setpackage:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master
- name: build ipk
id: build
env:
SOURCECODEURL: ${{ github.event.inputs.sourcecode }}
PKGNAME: ${{ github.event.inputs.pkgname }}
BOARD: ${{ github.event.inputs.device }}
EMAIL: ${{ github.event.inputs.email }}
PASSWORD: ${{ github.event.inputs.password }}
run: |
cd $GITHUB_WORKSPACE
chmod +x ./build.sh
./build.sh
- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.inputs.pkgname }}_related_ipks
path: |
./*ipk*