-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (34 loc) · 948 Bytes
/
main.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
name: "pre-release"
on:
push:
branches:
- "master"
- "standalone"
workflow_dispatch:
jobs:
pre-release:
name: "Pre Release"
runs-on: ubuntu-latest
strategy:
matrix:
branch: [master, standalone]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: "Extract Version Code"
id: version_code
run: |
VERSION_CODE=$(grep 'versionCode=' module.prop | cut -d'=' -f2)
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
echo "versionCode=$VERSION_CODE" >> $GITHUB_ENV
- name: "Build"
run: |
sh ./build.sh github
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ matrix.branch }}-${{ env.versionCode }}"
prerelease: true
files: |
*.zip