Skip to content

Bump actions/deploy-pages from 2.0.4 to 4.0.4 #11

Bump actions/deploy-pages from 2.0.4 to 4.0.4

Bump actions/deploy-pages from 2.0.4 to 4.0.4 #11

Workflow file for this run

name: Build Website
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build Site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-node@v4.0.0
with:
node-version: 20
- name: Install dependencies
run: dashboard/script/setup
- name: Run Build
run: dashboard/script/build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2.0.0
with:
path: dashboard/dist/web
deploy:
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main'
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v3.0.6
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.4