Skip to content

Commit

Permalink
chore: Add buildBeta workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hushenghao committed Dec 1, 2023
1 parent 0118f00 commit 751e0fb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/buildBeta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android Build Beta CI

on:
push:
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@v3
with:
java-version: '17'
distribution: 'adopt'
cache: gradle

- 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
uses: fastlane/github-actions/fastlane-env-reminder@latest
env:
PGYER_API_KEY: ${{ secrets.PGYER_API_KEY }}
run: fastlane beta
4 changes: 0 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
default_platform(:android)

platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "app:cAT")
end

desc "Submit a new Beta Build to Pgyer"
lane :beta do
Expand Down
8 changes: 0 additions & 8 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

## Android

### android test

```sh
[bundle exec] fastlane android test
```

Runs all the tests

### android beta

```sh
Expand Down

0 comments on commit 751e0fb

Please sign in to comment.