-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: broken-release-for pypa1.11 (#153)
* Updated python publish Signed-off-by: Ali Abbas Jaffri <[email protected]> * Updated release notes Signed-off-by: Ali Abbas Jaffri <[email protected]> --------- Signed-off-by: Ali Abbas Jaffri <[email protected]>
- Loading branch information
1 parent
72a479b
commit 0bad6d4
Showing
2 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,18 +53,18 @@ jobs: | |
with: | ||
pythonVersion: "3.11" | ||
dependencyType: "docs" | ||
- name: Append release notes to RELEASE_NOTES.md # automatically update release notes on new release | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git checkout main | ||
echo "Appending new release notes to RELEASE_NOTES.md" | ||
echo -e "\n## $(echo "${{ github.event.release.published_at }}" | cut -d'T' -f1) - version ${{ github.event.release.tag_name }}\n" >> RELEASE_NOTES.md | ||
echo "${{ github.event.release.body }}" >> RELEASE_NOTES.md | ||
echo -e "\n---\n" >> RELEASE_NOTES.md | ||
git add RELEASE_NOTES.md | ||
git commit -m "Updated release notes for ${{ github.event.release.tag_name }}" | ||
git push origin main | ||
# - name: Append release notes to RELEASE_NOTES.md # automatically update release notes on new release | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Actions" | ||
# git checkout main | ||
# echo "Appending new release notes to RELEASE_NOTES.md" | ||
# echo -e "\n## $(echo "${{ github.event.release.published_at }}" | cut -d'T' -f1) - version ${{ github.event.release.tag_name }}\n" >> RELEASE_NOTES.md | ||
# echo "${{ github.event.release.body }}" >> RELEASE_NOTES.md | ||
# echo -e "\n---\n" >> RELEASE_NOTES.md | ||
# git add RELEASE_NOTES.md | ||
# git commit -m "Updated release notes for ${{ github.event.release.tag_name }}" | ||
# git push origin main | ||
- name: Publish documentation | ||
uses: ./.github/actions/mike-docs | ||
with: | ||
|
@@ -88,8 +88,12 @@ jobs: | |
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
skip-existing: true # tolerate release package file duplicates | ||
attestations: false | ||
repository-url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true | ||
print-hash: true | ||
# Temp workaround since attestations are on by default as of gh-action-pypi-publish v1.11.0 | ||
attestations: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters