-
-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (50 loc) · 1.42 KB
/
pgyer.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
name: Build Pgyer apk
on:
push:
paths:
- 'app/**'
- 'eggs/**'
- 'basic/**'
- 'feature/**'
- 'theme/**'
- 'jvm-basic/**'
- 'build-logic/**'
- 'gradle/**'
- '*.kts'
- 'gradle.properties'
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Retrieve the secret and decode it to a file
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
KEY_PROPERTIES_BASE64: ${{ secrets.KEY_PROPERTIES_BASE64 }}
run: |
echo "$KEY_PROPERTIES_BASE64" | base64 --decode > key.properties
echo "$KEYSTORE_BASE64" | base64 --decode > keystore.jks
- name: Build with Fastlane
env:
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
PGYER_API_KEY: ${{ secrets.PGYER_API_KEY }}
if: ${{ env.PGYER_API_KEY != ''}}
run: |
bundle install
bundle exec fastlane install_plugins
bundle exec fastlane publish_to_pgyer