Skip to content

Commit ea8f228

Browse files
committed
TentativaErro
1 parent 9e77ceb commit ea8f228

File tree

1 file changed

+38
-32
lines changed

1 file changed

+38
-32
lines changed

.github/workflows/publish.yml

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,58 @@
11
# .github/workflows/publish.yml
22

3+
name: Quarto Publish (Final) # Mudamos o nome para forçar o GitHub a reconhecer a nova estrutura
4+
35
on:
4-
# Aciona o workflow quando há um push (envio de código) para o branch 'main'
56
push:
6-
branches: [main]
7-
8-
# Permite a execução manual do workflow pela interface do GitHub (Botão 'Run workflow')
7+
branches: ["main"]
98
workflow_dispatch:
109

11-
name: Quarto Publish
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
1218

1319
jobs:
14-
build-publish:
15-
# O workflow será executado em um servidor virtual Ubuntu
20+
build:
1621
runs-on: ubuntu-latest
17-
18-
# Permissões necessárias para que o workflow possa escrever e publicar no Pages
19-
permissions:
20-
contents: write
21-
pages: write
22-
id-token: write
23-
2422
steps:
25-
- name: 📥 Check out repository
23+
- name: 📥 Checkout do Repositório
2624
uses: actions/checkout@v4
2725

28-
- name: ⚙️ Set up Quarto
29-
# Instala o Quarto CLI no ambiente de execução do GitHub Actions
26+
- name: ⚙️ Setup Quarto
3027
uses: quarto-dev/quarto-actions/setup@v2
3128

32-
- name: 🐍 Set up Python and install dependencies
33-
# Instala a versão 3.10 do Python e o cache de pacotes
29+
- name: 🐍 Setup Python e Instalação de Dependências
3430
uses: actions/setup-python@v5
3531
with:
3632
python-version: '3.10'
3733
cache: 'pip'
3834

39-
# Exemplo de instalação de pacotes comuns de Data Science
40-
- name: Install dependencies
41-
run: |
42-
pip install pandas numpy jupyterlab jupyter_client
43-
# Use um arquivo requirements.txt se sua lista for longa!
44-
45-
# 💻 Renderiza e Publica
46-
- name: Render and Publish
47-
# Este passo executa 'quarto render' e envia o resultado para o GitHub Pages
48-
uses: quarto-dev/quarto-actions/publish@v2
35+
- name: Instalar Dependências (Python)
36+
run: pip install -r requirements.txt
37+
38+
- name: 💻 Renderizar o Quarto
39+
run: quarto render # Simplesmente renderiza, não publica
40+
41+
- name: Configurar Pages
42+
uses: actions/configure-pages@v5
43+
44+
- name: ⬆️ Upload do Artefato
45+
uses: actions/upload-pages-artifact@v3
4946
with:
50-
target: github-pages
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
path: ./_site
48+
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: 🚀 Deploy no GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)