Skip to content

add issue#4

add issue#4 #115

Workflow file for this run

name: 'GitHub Pages Deployment'
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './site'
steps:
- name: 'git / checkout'
uses: actions/checkout@v4
- name: 'Python / setup'
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: 'Node / install'
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: './site/package-lock.json'
- name: 'npm / install'
run: npm install
- name: 'npm / build'
env:
BASE_PATH: '/${{ github.event.repository.name }}/site'
run: |
npm run build
- name: 'GitHub / upload artifacts'
uses: actions/upload-pages-artifact@v3
with:
path: 'site/build/'
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 'GitHub / deploy'
id: deployment
uses: actions/deploy-pages@v4