forked from CHIZI-0618/box4magisk
-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (43 loc) · 1.28 KB
/
prerelease.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: prerelease
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
isAlpha: true
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set Timestamp
id: set_timestamp
run: echo "TIMESTAMP=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Run build.sh
run: sh build.sh
- name: Delete current prerelease assets
uses: andreaswilli/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: Prerelease-Alpha
deleteOnlyFromDrafts: false
- name: Tag Repo
uses: richardsimko/update-tag@v1
with:
tag_name: Prerelease-Alpha
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Prerelease
uses: softprops/action-gh-release@v1
if: success()
with:
tag_name: Prerelease-Alpha
files: Surfing_v*.zip
prerelease: true
generate_release_notes: true
body: |
Synchronize the latest code updates of branches and keep only the latest version
Release Timestamp: ${{ env.TIMESTAMP }}