-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (46 loc) · 1.36 KB
/
build-latest-preview.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
name: Build Latest Preview
on:
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/build.yml
with:
build_type: Debug
upload-preview:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update Tag
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git tag -f latest-preview ${{ github.sha }}
git push -f origin latest-preview
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Rename APK Files
run: |
mv -f minibrowser-Debug/debug/minibrowser-debug.apk minibrowser-latest.apk
mv -f mediaplayer-Debug/debug/mediaplayer-debug.apk mediaplayer-latest.apk
mv -f webdriver-Debug/debug/webdriver-debug.apk webdriver-latest.apk
- name: Delete Artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: |
minibrowser-Debug
mediaplayer-Debug
webdriver-Debug
- name: Upload Latest Preview Files
uses: softprops/action-gh-release@v1
with:
name: "Latest Preview"
tag_name: latest-preview
prerelease: true
files: |
minibrowser-latest.apk
mediaplayer-latest.apk
webdriver-latest.apk