Skip to content

Commit c3e8697

Browse files
authoredFeb 12, 2025
Update python-publish.yml
1 parent 61d53e2 commit c3e8697

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed
 

‎.github/workflows/python-publish.yml

+8-21
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Checkout do código
15+
- name: Checkout
1616
uses: actions/checkout@v4
1717

18-
- name: Configurar Python
18+
- name: Configure Python
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.x"
2222

23-
- name: Instalar dependências
23+
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install build
2727
28-
- name: Verificar arquivos no repositório
29-
run: ls -lah
30-
31-
- name: Garantir que o requirements.txt existe
32-
run: |
33-
if [ ! -f "requirements.txt" ]; then
34-
echo "❌ ERROR: requirements.txt não encontrado!"
35-
exit 1
36-
fi
37-
38-
- name: Criar distribuição do pacote
28+
- name: Create package
3929
run: python -m build
4030

41-
- name: Fazer upload do build
31+
- name: Build upload
4232
uses: actions/upload-artifact@v4
4333
with:
4434
name: release-dists
@@ -48,23 +38,20 @@ jobs:
4838
runs-on: ubuntu-latest
4939
needs: release-build
5040
permissions:
51-
id-token: write # Necessário para Trusted Publishing no PyPI
41+
id-token: write # Trusted Publishing no PyPI
5242

5343
environment:
5444
name: pypi
5545
url: https://pypi.org/project/goesgcp/
5646

5747
steps:
58-
- name: Baixar arquivos do build
48+
- name: Build Download
5949
uses: actions/download-artifact@v4
6050
with:
6151
name: release-dists
6252
path: dist/
6353

64-
- name: Listar arquivos antes da publicação
65-
run: ls -lah dist/
66-
67-
- name: Publicar no PyPI
54+
- name: Pyplish PyPI
6855
uses: pypa/gh-action-pypi-publish@release/v1
6956
with:
7057
packages-dir: dist/

0 commit comments

Comments
 (0)
Please sign in to comment.