-
Notifications
You must be signed in to change notification settings - Fork 26
35 lines (30 loc) · 979 Bytes
/
marp-to-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Marp to GitHub Pages"
on:
push:
branches: [ main ] # Assicurati che questo corrisponda al tuo branch principale
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Marp CLI
run: npm install -g @marp-team/marp-cli
- name: Convert Markdown to HTML
run: |
ls -la # Lista i file nella directory
cat introduction.md # Mostra il contenuto del file introduction.md
cat versioncontrol.md
marp --version # Mostra la versione di Marp
marp introduction.md -o index.html --verbose
marp versioncontrol.md -o versioncontrol.html --verbose
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .