Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,28 +157,29 @@ jobs:
- name: Build package
run: python -m build
- name: Export bundle release assets
run: python scripts/export_bundle_release_assets.py --dist-dir dist
run: python scripts/export_bundle_release_assets.py --dist-dir release-assets
- name: Verify bundle package metadata
env:
POLICYENGINE_SKIP_COUNTRY_IMPORTS: "1"
run: |
VERSION=$(python .github/fetch_version.py)
policyengine bundle verify --country us --country uk --packages-only --json \
> "dist/policyengine-bundle-$VERSION.verification.json"
> "release-assets/policyengine-bundle-$VERSION.verification.json"
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
skip_existing: true
skip-existing: true
packages-dir: dist
- name: Create GitHub Release
run: |
VERSION=$(python .github/fetch_version.py)
gh release create "$VERSION" \
--title "v$VERSION" \
--notes "See [CHANGELOG.md](https://github.com/PolicyEngine/policyengine.py/blob/main/CHANGELOG.md) for details." \
--latest \
"dist/policyengine-bundle-$VERSION.json" \
"dist/policyengine-bundle-$VERSION.constraints.txt" \
"dist/policyengine-bundle-$VERSION.citation.txt" \
"dist/policyengine-bundle-$VERSION.verification.json"
"release-assets/policyengine-bundle-$VERSION.json" \
"release-assets/policyengine-bundle-$VERSION.constraints.txt" \
"release-assets/policyengine-bundle-$VERSION.citation.txt" \
"release-assets/policyengine-bundle-$VERSION.verification.json"
1 change: 1 addition & 0 deletions changelog.d/separate-release-assets-from-pypi.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Keep bundle release sidecar files out of the PyPI upload directory during publication.
Loading