Skip to content

.github/workflows/build-deploy.yml #48

.github/workflows/build-deploy.yml

.github/workflows/build-deploy.yml #48

Workflow file for this run

on:
push:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/configure-pages@v2
- run: corepack enable
- run: yarn install
- run: yarn run build
- uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1