Skip to content

Merge remote-tracking branch 'origin/master' #3

Merge remote-tracking branch 'origin/master'

Merge remote-tracking branch 'origin/master' #3

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
pull_request:
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Create .env file
run: |
echo "VITE_MZCAPI_DOMAIN=${{ vars.VITE_MZCAPI_DOMAIN }}" >> .env
echo "VITE_MZCAPI_API_URL=${{ vars.VITE_MZCAPI_API_URL }}" >> .env
echo "VITE_MZCAPI_VERBOSE_LOGGING=${{ vars.VITE_MZCAPI_VERBOSE_LOGGING }}" >> .env
echo "VITE_FORM_ACCOUNT_UUID=${{ vars.VITE_FORM_ACCOUNT_UUID }}" >> .env
echo "VITE_FORM_UUID=${{ vars.VITE_FORM_UUID }}" >> .env
echo "VITE_FORM_STYLE=${{ vars.VITE_FORM_STYLE }}" >> .env
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist