Adding a google analytics tracking on the hugo website. #127
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: Publish Hugo Documentation On New Tag | |
on: | |
push: | |
branches: | |
- feature/docsFixes | |
tags: | |
- v* | |
jobs: | |
deployHugoPages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: NPM Dependencies | |
run: | | |
cd website && npm install | |
- name: NPM Dependencies | |
run: npm install postcss postcss-cli autoprefixer | |
- name: Build | |
run: | | |
cd website && npm run build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/public | |