add workflow
All checks were successful
website / prod-build (push) Successful in 16s

This commit is contained in:
Denys Konovalov 2023-08-15 17:08:21 +02:00
parent 9edc9f2e3c
commit 6b8ba76403
No known key found for this signature in database
GPG Key ID: 50F02F239C099532

@ -0,0 +1,24 @@
name: website
on:
push:
branches:
- main
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true
jobs:
prod-build:
runs-on: act-runner
timeout-minutes: 5
steps:
- name: clone
uses: actions/checkout@v3
- name: build
run: hugo --minify --gc --baseURL "https://ssp.denyskon.de/"
- name: deploy
run: |
cd public
rsync -azr --delete ./ /var/www/ssp/