diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index c1a397b0..b3add315 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -6,12 +6,29 @@ name: Deploy to Firebase Hosting on merge push: branches: - master -env: ${{ vars }} + +env: + # Setting an environment variable with the value of a configuration variable + env_var: ${{ vars.ENV_CONTEXT_VAR }} +#env: +# VITE_APP_TITLE: ${{ vars.prod.VITE_APP_TITLE }} +# VITE_APP_DESCRIPTION: ${{ vars.VITE_APP_DESCRIPTION }} +# VITE_APP_WEBSITE: ${{ vars.VITE_APP_WEBSITE }} +# VITE_APP_IMG: ${{ vars.VITE_APP_IMG }} +# VITE_APP_KEYWORDS: ${{ vars.VITE_APP_KEYWORDS }} +# VITE_APP_LANG: ${{ vars.VITE_APP_LANG }} jobs: build_and_deploy: + environment: 'prod' runs-on: ubuntu-latest steps: + - name: Check variables + run: | + echo "repository variable : $REPOSITORY_VAR" + echo "organization variable : $ORGANIZATION_VAR" + echo "overridden variable : $OVERRIDE_VAR" + echo "variable from shell environment : $env_var" - uses: actions/checkout@v2 - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0