fix: safer window.gtag declaration (doesn't override previous one) #58
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: docs | |
on: | |
push: | |
branches: [master, docs] | |
jobs: | |
docs-job: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
env: { NODE_OPTIONS: '--max-old-space-size=3200' } | |
steps: | |
- { uses: actions/checkout@v4, with: { persist-credentials: false } } | |
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } } | |
- { name: yarn, run: yarn --frozen-lockfile } | |
- name: docs-build | |
run: yarn docs-build | |
- name: publish docs to github pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/.vitepress/dist | |
force_orphan: true | |
commit_message: 'deploy docs [skip ci]' | |
# publish_branch: gh-pages |