Fixing some things #301
Workflow file for this run
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: documentation | |
on: | |
push: | |
tags: | |
- v* | |
- doc* | |
branches: [main] | |
pull_request: | |
branches: [main, "doc/*"] | |
jobs: | |
gh-release: | |
env: | |
DOC_FOLDER: "./docs" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: webfactory/ssh-agent@v0.5.0 | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
- name: Setup Node 🔧 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
cache-dependency-path: ./docs/package-lock.json | |
path: $DOC_FOLDER | |
- name: Restore Dependencies 📦 | |
working-directory: ${{ env.DOC_FOLDER }} | |
run: npm install --force | |
- name: Build ⚙️ | |
working-directory: ${{ env.DOC_FOLDER }} | |
run: npm run build | |
- name: Publish to GitHub Pages ✉️ | |
if: startsWith(github.ref, 'refs/tags/v') | |
working-directory: ${{ env.DOC_FOLDER }} | |
env: | |
USE_SSH: true | |
GIT_USER: git | |
run: | | |
git config --global user.email ${{secrets.OWNER_USER_EMAIL}} | |
git config --global user.name ${{secrets.OWNER_USER}} | |
npm run deploy |