Fix android.yml
This commit is contained in:
parent
ed5f574c71
commit
db49dfe51e
1 changed files with 25 additions and 25 deletions
50
.github/workflows/android.yml
vendored
50
.github/workflows/android.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: Android CI
|
name: Android CI
|
||||||
|
|
||||||
on: [ push, pull_request ]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -8,28 +8,28 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Build android app
|
- name: Build android app
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew assembleDebug
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
run: ./gradlew test
|
run: ./gradlew test
|
||||||
- name: Build web app
|
- name: Build web app
|
||||||
run: ./gradlew :web:assemble
|
run: ./gradlew :web:assemble
|
||||||
- name: Build iOS shared code
|
- name: Build iOS shared code
|
||||||
run: ./gradlew :common:compileKotlinIOS
|
run: ./gradlew :common:compileKotlinIOS
|
||||||
- name: Build macOS shared code
|
- name: Build macOS shared code
|
||||||
run: ./gradlew :common:compileKotlinMacOS
|
run: ./gradlew :common:compileKotlinMacOS
|
||||||
|
|
||||||
# If main branch update, deploy to gh-pages
|
# If main branch update, deploy to gh-pages
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BRANCH: gh-pages # The branch the action should deploy to.
|
BRANCH: gh-pages # The branch the action should deploy to.
|
||||||
FOLDER: web/build/distributions # The folder the action should deploy.
|
FOLDER: web/build/distributions # The folder the action should deploy.
|
||||||
CLEAN: true # Automatically remove deleted files from the deploy branch
|
CLEAN: true # Automatically remove deleted files from the deploy branch
|
Loading…
Reference in a new issue