Skip to content

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/[email protected]
with:
run_install: true
- name: Set up secret file
env:
DEBUG_GTM_ID: ${{ secrets.GTM_ID }}
run: |
echo $DEBUG_GTM_ID >> secrets.txt
- name: Run tmate
uses: mxschmitt/action-tmate@v2
- name: Build the project
run: pnpm build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
env:
VITE_GTM_ID: ${{ secrets.GTM_ID }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist