Merge pull request #69 from nnn-training/fix-67 #86
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: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.9.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.9.0 | |
- name: install | |
run: | | |
yarn install | |
- name: build | |
run: | | |
yarn build | |
env: | |
GITHUB_PAGES: true | |
- name: generate sitemap | |
run: | | |
npx next-sitemap | |
- name: export | |
run: | | |
yarn export | |
touch out/.nojekyll | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out |