Skip to content

ci(gh-pages): switch to actions/deploy-pages@v4 (#50) #1

ci(gh-pages): switch to actions/deploy-pages@v4 (#50)

ci(gh-pages): switch to actions/deploy-pages@v4 (#50) #1

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
- name: Build
run: |
npm ci
npm run build:pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "preview/"
- name: Deploy artifact to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4