From 09dfdf5ac257aefec9c920e5834d7665b019e8e4 Mon Sep 17 00:00:00 2001 From: Schallbert Date: Mon, 9 Sep 2024 11:55:26 +0200 Subject: [PATCH] add action to deploy lectures on caddy --- .gitea/workflows/deploy-lectures.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/deploy-lectures.yml diff --git a/.gitea/workflows/deploy-lectures.yml b/.gitea/workflows/deploy-lectures.yml new file mode 100644 index 0000000..47d1ed7 --- /dev/null +++ b/.gitea/workflows/deploy-lectures.yml @@ -0,0 +1,35 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site +name: Deploy Lecture site +run-name: ${{ gitea.actor }} deploys Lecture site +on: + push: + branches: + - master + +jobs: + # Deploy job + build: + runs-on: ubuntu-latest # this is the "label" the runner will use and map to docker target OS + container: + volumes: + # left: where the output will end up on disk, right: volume name inside container + - /opt/caddy2/www/lectures:/tmp/lectures_staging + + steps: + - name: --- CHECKOUT --- + uses: actions/checkout@v3 + with: + path: ./tmp + - name: --- NOTIFY --- + run: | + curl \ + -H "Title: Gitea act_runner" \ + -H "Content-Type: text/plain" \ + -d $'Repo: ${{ github.repository }}\nRef: ${{ github.ref }}\nStatus: ${{ job.status}}' \ + ntfy.sh/schallbert-borgmatic-catzenklebermusoelkanne + \ No newline at end of file