Skip to content

Update index.md

Update index.md #28

name: GitHub Pages
on:
- push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Build
run: |
npm install
sudo timedatectl set-timezone Asia/Seoul
npm run generate
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy
uses: actions/deploy-pages@v4
id: deploy-pages