Skip to content

Aggiornamento slide #23

Aggiornamento slide

Aggiornamento slide #23

Workflow file for this run

name: Genera PDF
on:
push:
branches: [ main ]
paths:
- 'intro/*.*'
- 'intro/assets/*.*'
- 'storia/*.*'
- 'storia/assets/*.*'
- 'webdesign/*.*'
- 'webdesign/assets/*.*'
- '.github/workflows/generatepdf.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: generate pdf Intro
run: |
cd intro
cp intro.md intro-backup.md
sed -i "s/%date%/$(date +'%Y-%m-%d')/g" intro.md
sed -i "s/%time%/$(date +'%H:%M')/g" intro.md
npx @marp-team/marp-cli@latest intro.md --pdf --allow-local-files
rm intro.md
mv intro-backup.md intro.md
- name: generate pdf storia
run: |
cd storia
cp storia.md storia-backup.md
sed -i "s/%date%/$(date +'%Y-%m-%d')/g" storia.md
sed -i "s/%time%/$(date +'%H:%M')/g" storia.md
npx @marp-team/marp-cli@latest storia.md --pdf --allow-local-files
rm storia.md
mv storia-backup.md storia.md
- name: generate pdf WebDesign
run: |
cd webdesign
cp webdesign.md webdesign-backup.md
sed -i "s/%date%/$(date +'%Y-%m-%d')/g" webdesign.md
sed -i "s/%time%/$(date +'%H:%M')/g" webdesign.md
npx @marp-team/marp-cli@latest webdesign.md --pdf --allow-local-files
rm webdesign.md
mv webdesign-backup.md webdesign.md
- name: commit & push
run: |
git add -A
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "update slide files"
git push