-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4760e0
commit 728d0ed
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|