|
1 | 1 | name: Publish to PyPi |
2 | | -on: |
3 | | - release: |
4 | | - types: [published] |
| 2 | +on: [push] |
5 | 3 |
|
6 | 4 | jobs: |
7 | 5 | build-pypi-packages: |
|
10 | 8 | - uses: actions/checkout@v4 |
11 | 9 | - uses: actions/setup-python@v5 |
12 | 10 | with: |
13 | | - python-version: '3.11' |
| 11 | + python-version: '3.9' |
14 | 12 | - uses: actions/setup-node@v4 |
15 | 13 | with: |
16 | 14 | node-version: 22.14.0 |
17 | 15 | - name: Build |
18 | 16 | run: | |
19 | 17 | set -ex |
20 | 18 | mkdir /tmp/sdists |
21 | | - python grr/proto/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
22 | | - python grr/core/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
23 | | - python grr/client/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
24 | | - python grr/client_builder/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
25 | | - python grr/server/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
26 | | - python grr/test/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
27 | | - python colab/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
28 | | - python api_client/python/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists" |
| 19 | + python grr/proto/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 20 | + python grr/core/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 21 | + python grr/client/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 22 | + python grr/client_builder/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 23 | + python grr/server/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 24 | + python grr/test/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 25 | + python colab/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 26 | + python api_client/python/setup.py --quiet sdist --formats=.tar.gz --dist-dir="/tmp/sdists" |
| 27 | + ls -lha /tmp/sdists/ |
29 | 28 | - name: Upload grr-response-proto |
30 | 29 | uses: actions/upload-artifact@v4 |
31 | 30 | with: |
32 | 31 | name: grr-response-proto |
33 | | - path: /tmp/sdists/grr-response-proto-[0-9]*.zip |
| 32 | + path: /tmp/sdists/grr_response_proto-*.tar.gz |
34 | 33 | retention-days: 3 |
35 | 34 | - name: Upload grr-response-core |
36 | 35 | uses: actions/upload-artifact@v4 |
37 | 36 | with: |
38 | 37 | name: grr-response-core |
39 | | - path: /tmp/sdists/grr-response-core-[0-9]*.zip |
| 38 | + path: /tmp/sdists/grr_response_core-*.tar.gz |
40 | 39 | retention-days: 3 |
41 | 40 | - name: Upload grr-response-client |
42 | 41 | uses: actions/upload-artifact@v4 |
43 | 42 | with: |
44 | 43 | name: grr-response-client |
45 | | - path: /tmp/sdists/grr-response-client-[0-9]*.zip |
| 44 | + path: /tmp/sdists/grr_response_client-*.tar.gz |
46 | 45 | retention-days: 3 |
47 | 46 | - name: Upload grr-response-client-builder |
48 | 47 | uses: actions/upload-artifact@v4 |
49 | 48 | with: |
50 | 49 | name: grr-response-client-builder |
51 | | - path: /tmp/sdists/grr-response-client-builder-[0-9]*.zip |
| 50 | + path: /tmp/sdists/grr_response_client_builder-*.tar.gz |
52 | 51 | retention-days: 3 |
53 | 52 | - name: Upload grr-response-server |
54 | 53 | uses: actions/upload-artifact@v4 |
55 | 54 | with: |
56 | 55 | name: grr-response-server |
57 | | - path: /tmp/sdists/grr-response-server-[0-9]*.zip |
| 56 | + path: /tmp/sdists/grr_response_server-*.tar.gz |
58 | 57 | retention-days: 3 |
59 | 58 | - name: Upload grr-response-test |
60 | 59 | uses: actions/upload-artifact@v4 |
61 | 60 | with: |
62 | 61 | name: grr-response-test |
63 | | - path: /tmp/sdists/grr-response-test-[0-9]*.zip |
| 62 | + path: /tmp/sdists/grr_response_test-*.tar.gz |
64 | 63 | retention-days: 3 |
65 | 64 | - name: Upload grr-colab |
66 | 65 | uses: actions/upload-artifact@v4 |
67 | 66 | with: |
68 | 67 | name: grr-colab |
69 | | - path: /tmp/sdists/grr-colab-[0-9]*.zip |
| 68 | + path: /tmp/sdists/grr_colab-*.tar.gz |
70 | 69 | retention-days: 3 |
71 | 70 | - name: Upload grr-api-client |
72 | 71 | uses: actions/upload-artifact@v4 |
73 | 72 | with: |
74 | 73 | name: grr-api-client |
75 | | - path: /tmp/sdists/grr-api-client-[0-9]*.zip |
| 74 | + path: /tmp/sdists/grr_api_client-*.tar.gz |
76 | 75 | retention-days: 3 |
77 | 76 |
|
78 | 77 | publish-to-pypi-grr-response-proto: |
|
0 commit comments