Skip to content

Commit d56650a

Browse files
committed
Added release workflow step
1 parent a85f690 commit d56650a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/release.yaml

+28-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
name: Checkout the repository
3030
with:
3131
fetch-depth: 0
32-
token: ${{ secrets.PAT }}
3332

3433
- name: Setup Python and Git
3534
uses: ./.github/actions/setup-python-and-git
@@ -91,8 +90,35 @@ jobs:
9190
with:
9291
tag-name: ${{ env.TAG_NAME }}
9392

93+
release:
94+
if: ${{ env.PACKAGE == 'true' }}
95+
permissions:
96+
id-token: write
97+
pull-requests: read
98+
contents: write
99+
steps:
100+
- name: Download packages built by build-and-inspect-python-package
101+
uses: actions/download-artifact@v4
102+
with:
103+
name: Packages
104+
path: dist
105+
106+
- name: Download release notes
107+
uses: actions/download-artifact@v4
108+
with:
109+
name: release-notes
110+
111+
- name: Create a GitHub release
112+
uses: softprops/action-gh-release@v1
113+
with:
114+
files: dist/*
115+
tag_name: "${{ env.TAG_NAME }}"
116+
body_path: release-notes.md
117+
118+
- name: Upload package to PyPI
119+
uses: pypa/gh-action-pypi-publish@release/v1
120+
94121
- name: Create a GitHub release
95-
if: ${{ env.PACKAGE == 'true' }}
96122
uses: ./.github/actions/release
97123
with:
98124
tag-name: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)