Skip to content

GAイベント設定 #17

GAイベント設定

GAイベント設定 #17

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Use Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Fetch Gists
env:
GET_GIST_TOKEN: ${{ secrets.GET_GIST_TOKEN }}
run: npm run fetch-gists
- name: Move gists.json
run: mv static/gists.json build/gists.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build