Fresh PLANTUML, pinned SCP action, and a shiny pre-commit lineup because “latest” is a lifestyle, not a strategy.
35 lines
818 B
YAML
35 lines
818 B
YAML
---
|
|
name: Publish diagram
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
render:
|
|
uses: ./.gitea/workflows/render.yaml
|
|
|
|
publish:
|
|
needs: render
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Download build artifact
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: polycule.png
|
|
path: ./
|
|
- name: copy puml to workspace
|
|
run: ls
|
|
- name: Upload to cdn
|
|
uses: appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0
|
|
with:
|
|
host: bruynooghe.dev
|
|
username: elizhium
|
|
password: ${{ secrets.ELIZHIUMPW }}
|
|
source: "polycule.puml, polycule.png"
|
|
target: "/home/elizhium/CDN"
|