More gh actions fixes (#1154)

* copy .env file before production release

* copy .env file into assets folder

* bump version number

* moved copying of .env file to earlier in release workflow
This commit is contained in:
ggurdin 2024-12-05 12:13:00 -05:00 committed by GitHub
parent 141684f6a4
commit 883825eba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
- run: echo "$WEB_APP_ENV" > .env
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
@ -34,6 +33,12 @@ jobs:
- run: flutter pub get
- name: Prepare web
run: ./scripts/prepare-web.sh
- name: Update Website files
run: |
touch .env
touch assets/.env
echo "$WEB_APP_ENV" > .env
echo "$WEB_APP_ENV" > assets/.env
- name: Build Release Web
run: |
flutter config --enable-web
@ -193,11 +198,6 @@ jobs:
with:
name: web
path: build/web
- name: Update Website files
run: |
touch .env
echo "$WEB_APP_ENV" >> .env
cp .env assets/.env
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v4
with: