Skip to content

Commit

Permalink
Add gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ngcha0 committed Jul 23, 2024
1 parent c70f786 commit f1b2d6b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: GitHub Pages

on:
push:
branches:
- master
pull_request:

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "npm"

- run: npm ci && npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .next

0 comments on commit f1b2d6b

Please sign in to comment.