Merge pull request #44 from curehht/feature/update-nextjs #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Build and Static HTML Export | |
run: npm run build | |
- name: Disable Jekyl # https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ | |
run: touch ./out/.nojekyll | |
- name: Enable custom domain | |
run: cp CNAME ./out | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: out |