Cleaning up gdg-template (#267) #125
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: | |
# - master | |
# Update for given branch for one of releases, otherwise only release on tags | |
# - feature/fixingReleaseDocs | |
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 | |