Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 21, 2023
1 parent f4760e0 commit 728d0ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
- name: 🔨 - Build
run: >
cross build --release --target ${{ matrix.target }} && \
mv target/**/release/rusty_controller rusty_controller-${{ matrix.build }}
mv target/**/release/rusty_controller server-${{ matrix.build }}
- name: 📦 - Copy artifact
uses: actions/upload-artifact@v3
with:
name: rusty_controller-${{ matrix.build }}
path: server/
name: server-${{ matrix.build }}
path: server/server-${{ matrix.build }}
if-no-files-found: error

build-app:
Expand All @@ -77,13 +77,13 @@ jobs:
- name: 🔨 - Build Apk
run: flutter build apk

- run: mv build/app/outputs/flutter-apk/app-release.apk ../RustyController.apk
- run: mv build/app/outputs/flutter-apk/app-release.apk ../app.apk

- name: 📦 - Copy artifact
uses: actions/upload-artifact@v3
with:
name: RustyController.apk
path: RustyController.apk
name: app.apk
path: app.apk

upload:
needs: [build-server, build-app]
Expand All @@ -98,7 +98,7 @@ jobs:
- name: 📦 - Copy app artifact
uses: actions/download-artifact@v3
with:
path: RustyController.apk
path: app.apk

- name: 🧐 - Display structure of downloaded artifacts
run: ls -R
Expand All @@ -107,7 +107,7 @@ jobs:
- name: 🌠 - Release
uses: ncipollo/[email protected]
with:
artifacts: "artifacts/**/rusty_controller*,RustyController.apk"
artifacts: "artifacts/**/server-*,app.apk"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
removeArtifacts: true
Expand Down

0 comments on commit 728d0ed

Please sign in to comment.