From 15c3067c65fe90d3d7886cbcb5831b0965966cc8 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 5 Nov 2023 12:02:35 +0100 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/build.yaml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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..c059b85 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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@v4 + - name: build + run: hugo --minify --gc --baseURL "https://denyskon.de/" + - name: deploy + run: | + cd public + rsync -azr --delete ./ /var/www/html/ \ No newline at end of file