-
Notifications
You must be signed in to change notification settings - Fork 128
46 lines (40 loc) · 1.73 KB
/
releases.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
name: Releases
on:
push:
tags:
- "*"
jobs:
linux:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Gradle Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembleRelease
- name: Rename Apks
run: |
mv app/build/outputs/apk/release/app-universal-release.apk EhViewer-NekoInverter-${{ github.ref_name }}-universal.apk
mv app/build/outputs/apk/release/app-arm64-v8a-release.apk EhViewer-NekoInverter-${{ github.ref_name }}-arm64-v8a.apk
mv app/build/outputs/apk/release/app-armeabi-v7a-release.apk EhViewer-NekoInverter-${{ github.ref_name }}-armeabi-v7a.apk
mv app/build/outputs/apk/release/app-x86_64-release.apk EhViewer-NekoInverter-${{ github.ref_name }}-x86_64.apk
mv app/build/outputs/apk/release/app-x86-release.apk EhViewer-NekoInverter-${{ github.ref_name }}-x86.apk
mv app/build/outputs/mapping/release/mapping.txt EhViewer-NekoInverter-${{ github.ref_name }}-mapping.txt
- name: Releases
uses: softprops/action-gh-release@v2
with:
body: Bump Version
files: |
EhViewer-NekoInverter-${{ github.ref_name }}-universal.apk
EhViewer-NekoInverter-${{ github.ref_name }}-arm64-v8a.apk
EhViewer-NekoInverter-${{ github.ref_name }}-armeabi-v7a.apk
EhViewer-NekoInverter-${{ github.ref_name }}-x86_64.apk
EhViewer-NekoInverter-${{ github.ref_name }}-x86.apk
EhViewer-NekoInverter-${{ github.ref_name }}-mapping.txt