Skip to content

Merge pull request #10 from LZUOSS/revert-6-dependabot/npm_and_yarn/h… #22

Merge pull request #10 from LZUOSS/revert-6-dependabot/npm_and_yarn/h…

Merge pull request #10 from LZUOSS/revert-6-dependabot/npm_and_yarn/h… #22

Workflow file for this run

name: Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.16.0'
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- run: npm install
- run: npm run build
- uses: actions/upload-pages-artifact@v2
with:
path: ./public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2