Skip to content

Merge pull request #6 from xinyuli1204/xinyuli1204-patch-1 #6

Merge pull request #6 from xinyuli1204/xinyuli1204-patch-1

Merge pull request #6 from xinyuli1204/xinyuli1204-patch-1 #6

Workflow file for this run

name: Publish
on:
push:
branches:
- 'main'
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: build
run: |
npm install
npm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'build'
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2