diff --git a/.env b/.env index 68746c1..3c6460a 100644 --- a/.env +++ b/.env @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 263ad31..8953c6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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