fix: identifier regex typo #51
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: Publish to website | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- GROQ-* | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: {node-version: '14'} | |
- name: Install NPM dependencies | |
run: npm i | |
- name: Add gh-pages worktree | |
run: git fetch origin gh-pages && git worktree add ./gh-pages gh-pages | |
- name: Generate HTML | |
run: sh scripts/publish.sh | |
- name: Commit and push if it changed | |
working-directory: gh-pages | |
run: |- | |
git config user.name "Automated" | |
git config user.email "actions@users.noreply.github.com" | |
git add -A | |
git commit -m "Update HTML" || exit 0 | |
git push |