inserted link in readme #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . |