Update action versions & separate artifacts

This commit is contained in:
Grishka 2024-03-02 01:28:53 +03:00
parent bcdce2a880
commit e892eaa3d5
1 changed files with 17 additions and 6 deletions

View File

@ -10,10 +10,10 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v1 uses: actions/setup-java@v2
with: with:
java-version: 21 java-version: 21
@ -54,15 +54,26 @@ jobs:
KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }} KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} 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 - name: Build githubRelease apk
run: ./gradlew assembleGithubRelease run: ./gradlew assembleGithubRelease
env: env:
KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }} KEYSTORE_FILE: ${{ steps.android_keystore.outputs.filePath }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Upload artifacts - name: Upload githubRelease apk
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
path: | name: mastodon-githubRelease.apk
mastodon/build/outputs/apk/*/*.apk path: mastodon/build/outputs/apk/githubRelease/mastodon-githubRelease.apk
mastodon/build/outputs/mapping/*/mapping.txt
- name: Upload mappings
uses: actions/upload-artifact@v4
with:
name: mappings
path: mastodon/build/outputs/mapping/*/mapping.txt