Add automatic deployment GH Action #9
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: Build HUGO website | |
on: | |
# Runs on pull requests to check that the website is building without errors | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: hugo-build | |
uses: klakegg/[email protected] | |
with: | |
source: ./src | |
target: ./build/blog | |
env: production | |
command: --verbose | |
- run: tree build | |
- name: upload-artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
path: ./build/blog |