[Vuejs]-Why is my static site broken using github action and azure cli to deploy?

0👍

For anyone interested – I was missing environment variables during the build process in the GitHub Action. I was able to pass these without checking in the .env files using github secrets.

There’s now a step in the action to create a .env,

- name: Set Environment Variables
        run: |
          touch .env
          echo ENVIRONMENT_VARIABLE=${{secrets.ENVIRONMENT_VARIABLE}} >> .env

and another to remove it:

- name: Remove Environment Variables
        run: |
          rm .env

Leave a comment