Skip to content

Commit

Permalink
Add gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
porink0424 committed Oct 25, 2023
1 parent 6b72054 commit 6ee75f4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages

# mainへのpush時に発動
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
# mainを取得
- name: Checkout
uses: actions/checkout@v3

# Nodeのセットアップ
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20

# パッケージをインストール
- name: Install dependencies
run: yarn

# ビルド
- name: Build
run: yarn build

# GitHub Pagesにデプロイ
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: out

0 comments on commit 6ee75f4

Please sign in to comment.