diff --git a/.github/workflows/main_deploy.yaml b/.github/workflows/main_deploy.yaml index 1207580ad..3abd9d18d 100644 --- a/.github/workflows/main_deploy.yaml +++ b/.github/workflows/main_deploy.yaml @@ -17,11 +17,6 @@ jobs: steps: - uses: actions/checkout@v2 - run: cat .github/workflows/versions.env >> $GITHUB_ENV - - name: 'Create env file' - run: | - touch .env - echo "$WEB_APP_ENV" >> .env - cat .env - uses: subosito/flutter-action@v2 with: flutter-version: ${{ env.FLUTTER_VERSION }} @@ -33,10 +28,11 @@ jobs: run: ./scripts/prepare-web.sh - name: Build Release Web run: ./scripts/build-web.sh - - name: Move Website + - name: Build Website run: | mv build/web public - mv .env public/.env + touch public/.env + echo "$WEB_APP_ENV" >> public/.env - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: @@ -47,8 +43,6 @@ jobs: update_sentry: runs-on: ubuntu-latest - environment: staging - needs: deploy_web steps: - uses: actions/checkout@v3 with: @@ -60,4 +54,6 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} - # SENTRY_URL: https://sentry.io/ \ No newline at end of file + # SENTRY_URL: https://sentry.io/ + with: + environment: staging