Skip to content

Commit

Permalink
ci: update and add upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
xfqwdsj committed Apr 14, 2024
1 parent 758e939 commit 8c79c50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
java-version: '21'

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
uses: gradle/actions/setup-gradle@v3

- if: matrix.os == 'ubuntu-latest'
name: Setup Android SDK
Expand Down Expand Up @@ -88,6 +88,12 @@ jobs:
run: |
./gradlew ciReleaseApp
- name: Upload ${{ matrix.platform }} app
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }} app
path: build/assets/*

- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
name: Release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 8c79c50

Please sign in to comment.