Update README.md #2
This file contains hidden or 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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] # Cambia se usi un altro branch principale | |
| permissions: | |
| contents: write # Serve per pushare su gh-pages | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: ⚙️ Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' # Cambia se usi un'altra versione | |
| - name: 📦 Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: 🛠️ Build static site | |
| run: | | |
| python web/generate_website.py | |
| - name: 🚀 Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: web/output |