Skip to content

Migrate to GHA-based GHP deploy #24

Migrate to GHA-based GHP deploy

Migrate to GHA-based GHP deploy #24

Workflow file for this run

name: Auto deploy
on:
push:
branches: [ master ]
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: benjlevesque/[email protected]
id: short-sha
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- name: Build
run: npm ci && npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4