Skip to content

Commit cf04f61

Browse files
committed
Release pypi
1 parent b9e452c commit cf04f61

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Publish to PyPi
2-
on:
3-
release:
4-
types: [published]
2+
on: [push]
53

64
jobs:
75
build-pypi-packages:
@@ -10,7 +8,7 @@ jobs:
108
- uses: actions/checkout@v4
119
- uses: actions/setup-python@v5
1210
with:
13-
python-version: '3.11'
11+
python-version: '3.9'
1412
- uses: actions/setup-node@v4
1513
with:
1614
node-version: 22.14.0
@@ -26,53 +24,54 @@ jobs:
2624
python grr/test/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists"
2725
python colab/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists"
2826
python api_client/python/setup.py --quiet sdist --formats=zip --dist-dir="/tmp/sdists"
27+
ls -lha /tmp/sdists/
2928
- name: Upload grr-response-proto
3029
uses: actions/upload-artifact@v4
3130
with:
3231
name: grr-response-proto
33-
path: /tmp/sdists/grr-response-proto-[0-9]*.zip
32+
path: /tmp/sdists/grr-response-proto-.*.zip
3433
retention-days: 3
3534
- name: Upload grr-response-core
3635
uses: actions/upload-artifact@v4
3736
with:
3837
name: grr-response-core
39-
path: /tmp/sdists/grr-response-core-[0-9]*.zip
38+
path: /tmp/sdists/grr-response-core-.*.zip
4039
retention-days: 3
4140
- name: Upload grr-response-client
4241
uses: actions/upload-artifact@v4
4342
with:
4443
name: grr-response-client
45-
path: /tmp/sdists/grr-response-client-[0-9]*.zip
44+
path: /tmp/sdists/grr-response-client-.*.zip
4645
retention-days: 3
4746
- name: Upload grr-response-client-builder
4847
uses: actions/upload-artifact@v4
4948
with:
5049
name: grr-response-client-builder
51-
path: /tmp/sdists/grr-response-client-builder-[0-9]*.zip
50+
path: /tmp/sdists/grr-response-client-builder-.*.zip
5251
retention-days: 3
5352
- name: Upload grr-response-server
5453
uses: actions/upload-artifact@v4
5554
with:
5655
name: grr-response-server
57-
path: /tmp/sdists/grr-response-server-[0-9]*.zip
56+
path: /tmp/sdists/grr-response-server-.*.zip
5857
retention-days: 3
5958
- name: Upload grr-response-test
6059
uses: actions/upload-artifact@v4
6160
with:
6261
name: grr-response-test
63-
path: /tmp/sdists/grr-response-test-[0-9]*.zip
62+
path: /tmp/sdists/grr-response-test-.*.zip
6463
retention-days: 3
6564
- name: Upload grr-colab
6665
uses: actions/upload-artifact@v4
6766
with:
6867
name: grr-colab
69-
path: /tmp/sdists/grr-colab-[0-9]*.zip
68+
path: /tmp/sdists/grr-colab-.*.zip
7069
retention-days: 3
7170
- name: Upload grr-api-client
7271
uses: actions/upload-artifact@v4
7372
with:
7473
name: grr-api-client
75-
path: /tmp/sdists/grr-api-client-[0-9]*.zip
74+
path: /tmp/sdists/grr-api-client-.*.zip
7675
retention-days: 3
7776

7877
publish-to-pypi-grr-response-proto:

0 commit comments

Comments
 (0)