Skip to content

chore: add workflow_dispatch trigger to deploy workflow #4

chore: add workflow_dispatch trigger to deploy workflow

chore: add workflow_dispatch trigger to deploy workflow #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
- '/.threat-models/**'
workflow_dispatch:
jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy
run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEPLOY_REMOTE: https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
VITE_BASE_PATH: /${{ github.event.repository.name }}/
VITE_REPO_URL: https://github.com/${{ github.repository }}