Reduce code duplication
All checks were successful
Render diagram / render (pull_request) Successful in 25s

Use reusable workflows
This commit is contained in:
Amedee Van Gasse ✨🌈🦄
2024-10-20 14:24:09 +02:00
parent b090427865
commit b6c3e85680
3 changed files with 43 additions and 40 deletions

View File

@@ -0,0 +1,29 @@
name: Publish diagram
on:
push:
branches:
- main
jobs:
render:
uses: ./.gitea/workflows/render.yaml
publish:
needs: render
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: polycule.png
path: ./
- name: Upload to cdn
uses: appleboy/scp-action@v0.1.7
with:
host: bruynooghe.dev
username: elizhium
password: ${{ secrets.ELIZHIUMPW }}
source: "polycule.*"
target: "/home/elizhium/CDN"