GitHub Pages Build #24
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: GitHub Pages Build | |
on: | |
workflow_dispatch: | |
jobs: | |
publish-github-pages: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Prepare package | |
run: | | |
npm ci | |
npm run build | |
- name: Generate website | |
run: | | |
cd ./site | |
npm ci | |
npm run generate | |
- name: Publish website | |
run: npm run docs | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "chore(site): publish website" | |
commit_user_name: ci | |
commit_user_email: ci@tooleks.com | |
commit_author: CI <ci@tooleks.com> |