flowquery 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,8 @@ name: Publish Python Package to PyPI
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - main
7
- paths:
8
- - "flowquery-py/**"
5
+ tags:
6
+ - "py-v*" # Trigger on tags like py-v1.0.1, py-v2.3.4, etc.
9
7
  pull_request:
10
8
  branches:
11
9
  - main
@@ -60,8 +58,6 @@ jobs:
60
58
  environment:
61
59
  name: testpypi
62
60
  url: https://test.pypi.org/p/flowquery
63
- permissions:
64
- id-token: write
65
61
 
66
62
  steps:
67
63
  - name: Download distribution artifacts
@@ -74,17 +70,17 @@ jobs:
74
70
  uses: pypa/gh-action-pypi-publish@release/v1
75
71
  with:
76
72
  repository-url: https://test.pypi.org/legacy/
73
+ password: ${{ secrets.TEST_PYPI_API_TOKEN }}
74
+ trusted-publisher: false
77
75
 
78
76
  publish-pypi:
79
77
  name: Publish to PyPI
80
- if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi')
78
+ if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/py-v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi')
81
79
  needs: build
82
80
  runs-on: ubuntu-latest
83
81
  environment:
84
82
  name: pypi
85
83
  url: https://pypi.org/p/flowquery
86
- permissions:
87
- id-token: write
88
84
 
89
85
  steps:
90
86
  - name: Download distribution artifacts
@@ -95,3 +91,6 @@ jobs:
95
91
 
96
92
  - name: Publish to PyPI
97
93
  uses: pypa/gh-action-pypi-publish@release/v1
94
+ with:
95
+ password: ${{ secrets.PYPI_API_TOKEN }}
96
+ trusted-publisher: false