Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added release workflow step #269

Merged
merged 3 commits into from
Dec 17, 2024
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
30 changes: 28 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
name: Checkout the repository
with:
fetch-depth: 0
token: ${{ secrets.PAT }}

- name: Setup Python and Git
uses: ./.github/actions/setup-python-and-git
Expand Down Expand Up @@ -91,8 +90,35 @@ jobs:
with:
tag-name: ${{ env.TAG_NAME }}

release:
if: ${{ env.PACKAGE == 'true' }}
permissions:
id-token: write
pull-requests: read
contents: write
steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist

- name: Download release notes
uses: actions/download-artifact@v4
with:
name: release-notes

- name: Create a GitHub release
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: "${{ env.TAG_NAME }}"
body_path: release-notes.md

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Create a GitHub release
if: ${{ env.PACKAGE == 'true' }}
uses: ./.github/actions/release
with:
tag-name: ${{ env.TAG_NAME }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.8.2'
rev: 'v0.8.3'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down Expand Up @@ -60,7 +60,7 @@ repos:
test.*
)$
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.10
rev: 0.5.12
hooks:
- id: pydoclint
args:
Expand Down
Loading