Skip to content

switch to github actions #2

switch to github actions

switch to github actions #2

Workflow file for this run

name: Publish
on:
push:
branches: ["master"]
pull_request:
permissions:
pages: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i && node build.js
- uses: actions/upload-pages-artifact@v1
with:
path: build
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
- uses: actions/deploy-pages@v2
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'