Federated via graft
0

Configure Feed

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

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