25 lines
528 B
YAML
25 lines
528 B
YAML
---
|
|
name: Generate and upload hugo website
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
generate_and_uplaod_site:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Update Packages
|
|
run: sudo apt update
|
|
|
|
- name: Install Go
|
|
run: sudo apt install golang-go -y
|
|
|
|
- name: Preparing the Go compiler
|
|
run: echo 'CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest'
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: List files in the repository
|
|
run: ls ${{ gitea.workspace }}
|
|
|