Skip to content

Commit 9804a35

Browse files
committed
Work around trusted publisher failures
1 parent 8acd013 commit 9804a35

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,35 @@ jobs:
126126
with:
127127
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}
128128

129+
#deploy-python-package:
130+
# name: Deploy Python Package
131+
# uses: ./.github/workflows/deploy-package-action.yml
132+
# if: ${{ inputs.kind == 'release' && success() }}
133+
# needs:
134+
# - pre-commit
135+
# - test
136+
# - docs
137+
# - build-python-package
138+
# - test-fips
139+
# secrets:
140+
# PYPI_API_TOKEN: "${{ secrets.PYPI_API_TOKEN }}"
141+
129142
deploy-python-package:
130-
name: Deploy Python Package
131-
uses: ./.github/workflows/deploy-package-action.yml
143+
name: "Deploy python package"
144+
runs-on: ubuntu-latest
132145
if: ${{ inputs.kind == 'release' && success() }}
133146
needs:
134147
- pre-commit
135148
- test
136149
- docs
137150
- build-python-package
138151
- test-fips
139-
secrets:
140-
PYPI_API_TOKEN: "${{ secrets.PYPI_API_TOKEN }}"
152+
steps:
153+
- name: Run deploy package action
154+
uses: the-actions-org/workflow-dispatch@v4
155+
with:
156+
workflow: Relenv Python Package
157+
inputs: '{ "run_id": "${{ github.run_id }}" }'
141158

142159
create-release:
143160
name: Create Github Release
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
11
name: Relenv Python Package
22

33
on:
4-
workflow_call:
5-
secrets:
6-
PYPI_API_TOKEN:
4+
workflow_dispatcht:
5+
inputs:
6+
run_id:
77
required: true
88

99
jobs:
1010
build:
1111
name: Publish Python Wheel
1212
runs-on: ubuntu-latest
13+
environment: release
1314
steps:
15+
1416
- name: Download Source Tarball Artifact
1517
uses: actions/download-artifact@v4
1618
with:
1719
name: Source Tarball
1820
path: dist
21+
run_id: ${{ inputs.run_id }}
22+
gihtub-token: ${{ secrets.GITHUB_TOKEN }}
23+
1924
- name: Download Wheel Artifact
2025
uses: actions/download-artifact@v4
2126
with:
2227
name: Python Wheel
2328
path: dist
29+
run_id: ${{ inputs.run_id }}
30+
gihtub-token: ${{ secrets.GITHUB_TOKEN }}
31+
2432
- name: Publish distribution to PyPI
2533
uses: pypa/gh-action-pypi-publish@release/v1
2634
with:
27-
password: ${{ secrets.PYPI_API_TOKEN }}
35+
verbose: true
36+
print-hash: true
37+
skip-existing: true
38+
verify-metadata: true

0 commit comments

Comments
 (0)