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
| # .github/workflows/publish.yml | |
| name: Quarto2Git2Site | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout do Repositório | |
| uses: actions/checkout@v4 | |
| - name: ⚙️ Setup Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: 🐍 Setup Python e Instalação de Dependências | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| - name: Instalar Dependências (Python) | |
| run: pip install -r requirements.txt | |
| - name: 💻 Renderizar o Quarto | |
| run: quarto render # Simplesmente renderiza, não publica | |
| - name: Configurar Pages | |
| uses: actions/configure-pages@v5 | |
| - name: ⬆️ Upload do Artefato | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./_site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: 🚀 Deploy no GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |