-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.05 KB
/
rom.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
name: Start-ROM
on:
watch:
types: [started]
env:
TZ: Asia/Shanghai
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Initializing the environment
run: |
cd $GITHUB_WORKSPACE/tool
sudo -s bash ./Script/Setup.sh
- name: Download Rom
run: |
cd $GITHUB_WORKSPACE/tool
sudo -s bash ./Script/Download.sh
- name: Start working on Rom & Upload Rom
run: |
cd $GITHUB_WORKSPACE/tool
sudo -s bash tool.sh
- name: Get the latest tag
id: get_tag
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags)
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
$GITHUB_WORKSPACE/tool/Work/Magisk-Recover.zip
$GITHUB_WORKSPACE/tool/Work/log-*.zip
$GITHUB_WORKSPACE/tool/Work/*.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.get_tag.outputs.tag }}