Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCoduriV committed Sep 23, 2022
1 parent 3ac0c6d commit a421346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USERNAME=
PASSWORD=
GAPS_ID=
SERVER_IP_DEV=
SERVER_IP_PROD=
PORT_DEV=
PORT_PROD=
SERVER_IP_DEV=student-api.ddns.net
SERVER_IP_PROD=student-api.ddns.net
PORT_DEV=3001
PORT_PROD=3001
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_JKS: ${{ secrets.KEY_JKS }}
run: echo "$KEY_JKS" > android/upload-keystore.jks.b && base64 --decode android/upload-keystore.jks.b > android/upload-keystore.jks && flutter pub get && flutter build apk --release --dart-define=SERVER_IP_PROD=${{ secrets.SERVER_IP_PROD }} --dart-define=PORT_PROD=${{ secrets.PORT_PROD }}
SERVER_IP_PROD: ${{ secrets.SERVER_IP_PROD }}
PORT_PROD: ${{ secrets.PORT_PROD }}
run: echo "$KEY_JKS" > android/upload-keystore.jks.b && base64 --decode android/upload-keystore.jks.b > android/upload-keystore.jks && flutter pub get && flutter build apk --release --dart-define=SERVER_IP_PROD="$SERVER_IP_PROD" --dart-define=PORT_PROD="$PORT_PROD"

- name: Create Github Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit a421346

Please sign in to comment.