forked from julian-klode/dns66
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 1.07 KB
/
publish.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
name: DNSNet Publish
on:
push:
tags:
- '*'
jobs:
publish:
if: ${{ github.repository == 't895/DNSNet' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Give execution permissions to the gradle wrapper
run: chmod +x ./gradlew
- name: Build
env:
KEY_ALIAS: ${{secrets.KEY_ALIAS}}
KEY_PASSWORD: ${{secrets.KEY_PASSWORD}}
STORE_PASSWORD: ${{secrets.KEY_PASSWORD}}
run: |
echo "${{secrets.STORE_FILE}}" | base64 --decode > ${HOME}/keyfile.jks
export STORE_FILE_PATH=${HOME}/keyfile.jks
./gradlew :app:assembleRelease
./gradlew :app:buildApksRelease
./gradlew :app:bundleRelease
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "./**/*.apk,./**/*.apks,./**/*.aab"