lectures/.gitea/workflows/deploy-lectures.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-09 09:55:26 +00:00
# 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:
2024-09-09 10:13:13 +00:00
- main
2024-09-09 09:55:26 +00:00
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
2024-09-09 10:45:17 +00:00
- /opt/caddy2/www/lectures:/workspace/schallbert/lectures/tmp
2024-09-09 10:50:09 +00:00
2024-09-09 09:55:26 +00:00
steps:
- name: --- CHECKOUT ---
uses: actions/checkout@v3
with:
path: ./tmp
2024-09-09 10:45:17 +00:00
- name: --- TEST ---
run: |
echo "hello world"
touch test.txt
pwd
ls -al
2024-09-09 09:55:26 +00:00
- 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