From 06bdf69b5ff7856e5892a13952eb579993e40e49 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Wed, 4 Feb 2026 10:29:33 +0100 Subject: [PATCH] feat: add build workflow - Add new Gitea build workflow to check for Hugo site errors on main branch pushes - Update deploy workflow: changed name and group --- .gitea/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ .gitea/workflows/deploy.yaml | 6 +++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..b63a9c1 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,30 @@ +--- +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: + - run: | + export HUGO_VERSION=$(curl --silent -I https://github.com/gohugoio/hugo/releases/latest | grep location | sed 's|.*tag/||' | tr -d '\r') + export HUGO_VERSION_SHORT=$(echo ${HUGO_VERSION} | sed 's/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: ${{ env.GITEA_REF_NAME }} diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 75f0e2c..e3241a1 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,12 +1,12 @@ --- -name: Deploy website on production server when committing on main +name: Deploy website on production server on a tag concurrency: - group: deploy-website + group: deploy cancel-in-progress: false on: push: - tags: + tags: - '*' defaults: