Federated via graft
0

Configure Feed

Select the types of activity you want to include in your feed.

ci: add Marp HTML build workflow

+36
+36
.forgejo/workflows/build-presentation.yml
··· 1 + name: Build HTML presentation 2 + 3 + on: 4 + push: 5 + branches: [main] 6 + paths: 7 + - presentation-fr.md 8 + - img/** 9 + workflow_dispatch: 10 + 11 + jobs: 12 + render: 13 + runs-on: linux-host 14 + steps: 15 + - name: Checkout 16 + run: | 17 + rm -rf work 18 + git clone --depth 1 "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" work 19 + 20 + - name: Render presentation-fr.html with Marp 21 + run: | 22 + cd work 23 + /usr/local/bin/marp presentation-fr.md -o presentation-fr.html --html --allow-local-files 24 + 25 + - name: Commit and push if changed 26 + run: | 27 + cd work 28 + git config user.email "ci@f1.cyberwild.org" 29 + git config user.name "graft-presentation-ci" 30 + git add presentation-fr.html 31 + if git diff --cached --quiet; then 32 + echo "Nothing to commit" 33 + exit 0 34 + fi 35 + git commit -m "ci: regenerate presentation-fr.html" 36 + git push origin HEAD:main