@@ -12,33 +12,23 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - name : Checkout do código
15
+ - name : Checkout
16
16
uses : actions/checkout@v4
17
17
18
- - name : Configurar Python
18
+ - name : Configure Python
19
19
uses : actions/setup-python@v5
20
20
with :
21
21
python-version : " 3.x"
22
22
23
- - name : Instalar dependências
23
+ - name : Install dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
26
pip install build
27
27
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
39
29
run : python -m build
40
30
41
- - name : Fazer upload do build
31
+ - name : Build upload
42
32
uses : actions/upload-artifact@v4
43
33
with :
44
34
name : release-dists
@@ -48,23 +38,20 @@ jobs:
48
38
runs-on : ubuntu-latest
49
39
needs : release-build
50
40
permissions :
51
- id-token : write # Necessário para Trusted Publishing no PyPI
41
+ id-token : write # Trusted Publishing no PyPI
52
42
53
43
environment :
54
44
name : pypi
55
45
url : https://pypi.org/project/goesgcp/
56
46
57
47
steps :
58
- - name : Baixar arquivos do build
48
+ - name : Build Download
59
49
uses : actions/download-artifact@v4
60
50
with :
61
51
name : release-dists
62
52
path : dist/
63
53
64
- - name : Listar arquivos antes da publicação
65
- run : ls -lah dist/
66
-
67
- - name : Publicar no PyPI
54
+ - name : Pyplish PyPI
68
55
uses : pypa/gh-action-pypi-publish@release/v1
69
56
with :
70
57
packages-dir : dist/
0 commit comments