-
Notifications
You must be signed in to change notification settings - Fork 118
79 lines (65 loc) · 2.49 KB
/
makeRelease.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Make Release
on:
push:
tags: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Source Code Download
run: git clone --branch stable --single-branch --recurse-submodules https://github.com/siavash79/PixelXpert.git .
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Shell Scripts Permissions
run: chmod +x .github/*.sh
- name: Version Bump
run: .github/bumpVersion.sh
- name: Gradlew Permissions
run: chmod +x gradlew
- name: Signature files preparation
run: |
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then
echo storePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> ReleaseKey.properties
echo keyAlias='${{ secrets.ALIAS }}' >> ReleaseKey.properties
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> ReleaseKey.properties
echo storeFile='${{ github.workspace }}/ReleaseKey.jks' >> ReleaseKey.properties echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/ReleaseKey.jks
fi
- name: Gradle Build
run: ./gradlew assembleRelease
- name: Magisk Module Generation
run: .github/make_zip.sh
- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: PixelXpert.zip
path: output
- name: Release the binaries
uses: ncipollo/[email protected]
with:
tag: ${{ github.ref }}
name: ${{ github.ref }}
prerelease: false
draft: false
artifacts: 'output/*.*'
bodyFile: 'releaseNotes.md'
- name: Commit version bump
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'stable'
commit-message: 'Version update: Release'
force-add: 'true'
files: MagiskModBase/module.prop MagiskModAddon/module.prop app/build.gradle MagiskModuleUpdate.json MagiskModuleUpdate_Full.json MagiskModuleUpdate_Xposed.json latestStable.json MagiskChangelog.md
name: GitHub
email: [email protected]
- name: Telegram Channel Post
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.AOSPMODS_CHANNEL_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: ${{ env.TMessage }}
format: markdown