Public HTML #14
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: Public HTML | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
push: | |
branches: [main, devel] | |
tags: | |
- 'v*.*.*' | |
pull_request: | |
branches: [main, devel] | |
# schedule: | |
# - cron: '0 6,12,16 * * *' | |
jobs: | |
deploy: | |
runs-on: [ubuntu-latest] | |
container: | |
image: ghcr.io/boschglobal/dse-docsy-builder:main | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
env: | |
HUGO_SECURITY_EXEC_OSENV: ".*" | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
hugo mod get -u | |
hugo --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
publish_branch: public_html |