Compare commits

..

2 Commits

Author SHA1 Message Date
06bdf69b5f feat: add build workflow
All checks were successful
Build website to check for errors / test (push) Successful in 22s
- Add new Gitea build workflow to check for Hugo site errors on main branch pushes
- Update deploy workflow: changed name and group
2026-02-04 10:29:33 +01:00
d2dc3a0a9e changed deployment host and path 2026-02-02 17:21:26 +01:00
3 changed files with 35 additions and 5 deletions

View File

@@ -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 }}

View File

@@ -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:

4
.vars
View File

@@ -1,4 +1,4 @@
#/usr/bin/env bash
export DEPLOYMENT_HOST=docker.infra.bjphoster.cloud
export DEPLOYMENT_PATH=/opt/pedini.dev
export DEPLOYMENT_HOST=vps01.hostit.infra.bjphoster.cloud
export DEPLOYMENT_PATH=/srv/pedini.dev