Skip to content

update versions in push.yaml (#262) #595

update versions in push.yaml (#262)

update versions in push.yaml (#262) #595

Workflow file for this run

on:
push:
branches:
- master
tags:
- v*
pull_request:
name: Build and deploy on push
jobs:
build:
name: yarn build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn install
- run: yarn build
- run: ln -s index.html dist/404.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
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
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2