File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 3232 uses : pypa/gh-action-pypi-publish@release/v1
3333 with :
3434 password : ${{ secrets.PYPI_API_TOKEN }}
35+ skip-existing : true
36+
37+ - name : Create .pypirc for Azure Artifacts
38+ run : |
39+ cat <<EOF > ~/.pypirc
40+ [distutils]
41+ index-servers =
42+ azure
43+
44+ [azure]
45+ repository: https://pkgs.dev.azure.com/${{ secrets.AZURE_ORG }}/${{ secrets.AZURE_PROJECT }}/_packaging/${{ secrets.AZURE_FEED }}/pypi/upload/
46+ username: ${{ secrets.AZURE_USERNAME }}
47+ password: ${{ secrets.AZURE_ARTIFACTS_PAT }}
48+ EOF
49+
50+ - name : Publish package to Azure Artifacts
51+ run : |
52+ if twine upload -r azure dist/* --skip-existing; then
53+ echo "✅ Successfully published to Azure Artifacts (or already existed)"
54+ else
55+ EXIT_CODE=$?
56+ echo "❌ Azure Artifacts upload failed, but PyPI upload succeeded"
57+ if [[ $EXIT_CODE == 1 ]]; then
58+ echo "⚠️ This may be due to version conflicts or connectivity issues"
59+ fi
60+ echo "This is non-critical - the package is available on PyPI"
61+ exit 0
62+ fi
Original file line number Diff line number Diff line change 1+ ## 1.2.6
2+
3+ ** Publish to both pypi and artifacts**
4+
15## 1.2.5
26
37** Fix** : move S3 ambient_credentials out of AccessConfig
Original file line number Diff line number Diff line change 1- __version__ = "1.2.5 " # pragma: no cover
1+ __version__ = "1.2.6 " # pragma: no cover
You can’t perform that action at this time.
0 commit comments