Files
pedini.dev/.gitea/workflows/build.yaml
Bryan Joshua Pedini 26c27c5193
All checks were successful
Build website to check for errors / test (push) Successful in 11s
Deploy website on production server on a tag / test (push) Successful in 11s
fixed ci version information
2026-07-30 07:25:37 +02:00

38 lines
1.0 KiB
YAML

---
name: Build website to check for errors
concurrency:
group: build
cancel-in-progress: false
on:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install latest Hugo
run: |
set -euo pipefail
tag="$(curl --silent --show-error --location --fail-with-body \
-H 'Accept: application/vnd.github+json' \
https://api.github.com/repos/gohugoio/hugo/releases/latest \
| jq -r '.tag_name // empty')"
[ -n "$tag" ] || { echo "no tag_name in gohugoio/hugo releases/latest" >&2; exit 1; }
export HUGO_VERSION="$tag"
export HUGO_VERSION_SHORT="${HUGO_VERSION#v}"
wget "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_${HUGO_VERSION_SHORT}_linux-amd64.deb"
dpkg -i hugo_*.deb
- uses: actions/checkout@v4
with:
submodules: true
- run: make
env:
APP_VERSION: ${{ github.ref_name }}