From 883825eba6b39852159732530ef76423188a62ce Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:13:00 -0500 Subject: [PATCH] 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 --- .github/workflows/release.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 35e006a24..17321b850 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: