Skip to content

Commit

Permalink
ci: improve artifacts management
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Oct 6, 2024
1 parent 2446465 commit 44f0c46
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@ jobs:
run: sh tool/build-android.sh prod apk
- name: Build Android prod
run: sh tool/build-android.sh prod appbundle
- name: Build Web prod
run: sh tool/build-web.sh prod
- name: Archive artifacts
- name: Archive Android artifacts
uses: actions/upload-artifact@v4
with:
name: android-app
path: |
build/app/outputs/bundle/prodRelease/app-prod-release.aab
build/app/outputs/flutter-apk/app-prod-release.apk
build/web/
retention-days: 1
- name: Build Web prod
run: sh tool/build-web.sh prod
- name: Archive web artifacts
uses: actions/upload-artifact@v4
with:
name: web-app
path: build/web/
retention-days: 1

upload-play-store:
Expand All @@ -59,6 +65,7 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: android-app
path: artifacts/
- name: Upload Android Release to Play Store
uses: r0adkll/upload-google-play@v1
Expand All @@ -81,8 +88,11 @@ jobs:
- name: Configure enviroment
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: web-app
path: build/web
- name: HTML/CSS/JS Minifier
uses: docker://devatherock/minify-js:2.0.0
uses: docker://devatherock/minify-js:3.1.0
with:
directory: 'build/web'
add_suffix: false
Expand All @@ -106,7 +116,7 @@ jobs:
name: web-app
path: build/web
- name: HTML/CSS/JS Minifier
uses: docker://devatherock/minify-js:2.0.0
uses: docker://devatherock/minify-js:3.1.0
with:
directory: 'build/web'
add_suffix: false
Expand Down

0 comments on commit 44f0c46

Please sign in to comment.