new web build test...

pull/795/head
Brord van Wierst 2 years ago
parent 2b75f93881
commit d5784a0831
No known key found for this signature in database
GPG Key ID: 20E7ACBD8E02BC11

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix-main-deploy
env:
# Setting an environment variable with the value of a configuration variable
@ -16,6 +17,11 @@ 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 }}
@ -27,11 +33,10 @@ jobs:
run: ./scripts/prepare-web.sh
- name: Build Release Web
run: ./scripts/build-web.sh
- name: Build Website
- name: Move Website
run: |
mv build/web public
touch public/.env
echo "$WEB_APP_ENV" >> public/.env
mv .env public/.env
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
@ -42,6 +47,8 @@ jobs:
update_sentry:
runs-on: ubuntu-latest
environment: staging
needs: deploy_web
steps:
- uses: actions/checkout@v3
with:
@ -53,6 +60,4 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: https://sentry.io/
with:
environment: staging
# SENTRY_URL: https://sentry.io/
Loading…
Cancel
Save