Skip to content

Commit b806707

Browse files
authored
Merge pull request #269 from callowayproject/release-fixes
Added release workflow step
2 parents a85f690 + e0c5b98 commit b806707

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
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 }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: 'v0.8.2'
4+
rev: 'v0.8.3'
55
hooks:
66
- id: ruff
77
args: [--fix, --exit-non-zero-on-fix]
@@ -60,7 +60,7 @@ repos:
6060
test.*
6161
)$
6262
- repo: https://github.com/jsh9/pydoclint
63-
rev: 0.5.10
63+
rev: 0.5.12
6464
hooks:
6565
- id: pydoclint
6666
args:

0 commit comments

Comments
 (0)