Skip to content

Merge pull request #3 from akku1139/patch-1 #220

Merge pull request #3 from akku1139/patch-1

Merge pull request #3 from akku1139/patch-1 #220

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.3
- name: Cache node_modules
uses: actions/cache@v3
id: node_modules_cache_id
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install deps
if: ${{ steps.node_modules_cache_id.outputs.cache-hit != 'true' }}
run: pnpm install
- name: generate
run: pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2