Skip to content

Merge pull request #48 from ThomasJButler/v3.5-DomainUpdate #19

Merge pull request #48 from ThomasJButler/v3.5-DomainUpdate

Merge pull request #48 from ThomasJButler/v3.5-DomainUpdate #19

Workflow file for this run

name: Deploy to GitHub Pages
permissions:
contents: write
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup git identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions[bot]"
- name: Deploy to GitHub Pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git
npx gh-pages -d dist