Skip to content

Commit

Permalink
Update action versions & separate artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Mar 1, 2024
1 parent bcdce2a commit e892eaa
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 21

Expand Down Expand Up @@ -54,15 +54,26 @@ jobs:
KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}

- name: Upload release apk
uses: actions/upload-artifact@v4
with:
name: mastodon-release.apk
path: mastodon/build/outputs/apk/release/mastodon-release.apk

- name: Build githubRelease apk
run: ./gradlew assembleGithubRelease
env:
KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}

- name: Upload artifacts
- name: Upload githubRelease apk
uses: actions/upload-artifact@v4
with:
name: mastodon-githubRelease.apk
path: mastodon/build/outputs/apk/githubRelease/mastodon-githubRelease.apk

- name: Upload mappings
uses: actions/upload-artifact@v4
with:
path: |
mastodon/build/outputs/apk/*/*.apk
mastodon/build/outputs/mapping/*/mapping.txt
name: mappings
path: mastodon/build/outputs/mapping/*/mapping.txt

0 comments on commit e892eaa

Please sign in to comment.