Skip to content

update github workflows (next) #25

update github workflows (next)

update github workflows (next) #25

name: Publish Github Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable corepack
run: |
corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install Dependencies
run: yarn install
- name: Build Pages
run: yarn build
- uses: actions/upload-pages-artifact@v4
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Publish generated content to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4