Skip to content

Commit

Permalink
Add act
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-kwon committed Nov 6, 2024
1 parent b953f1c commit 0ed0efb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,31 @@ jobs:
runs-on: ubuntu-latest

steps:
# Setup Env.
- name: Setup Env
- name: Set up Env
run: |
VERSION_NAME=$(grep "versionName" ./version.properties | cut -d "=" -f 2)
echo '${{ secrets.PUBLISH_PROPERTIES }}' | openssl base64 -d -out ./publish.properties
# Checkout.
- name: Checkout
uses: actions/checkout@v4

# JDK Setup.
- name: set up JDK 17
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

# Publishing.
- name: Build
- name: Set up Android SDK (Only on Act)
if: ${{ env.ACT }}
uses: android-actions/setup-android@v3

- name: Publish
if: ${{ !env.ACT }}
run: ./gradlew publish

# Release.
- name: Release
if: ${{ !env.ACT }}
uses: ncipollo/release-action@v1
with:
tag: v${{ env.VERSION_NAME }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
local.properties
publish.properties
/act

0 comments on commit 0ed0efb

Please sign in to comment.