Skip to content

Commit

Permalink
Fix release action (#160)
Browse files Browse the repository at this point in the history
* upgrade actionlint

* Use comnoco release action

* Release v11.1.1

* create release with gh cli
  • Loading branch information
jfhbrook authored Aug 30, 2024
1 parent 6b38665 commit 2d666a9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2
27 changes: 18 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
with:
name: man-page
path: _build/man
- name: Build Release Notes
# thanks to https://gist.github.com/Integralist/57accaf446cf3e7974cd01d57158532c
run: awk '/^##/ {block++} {if (block == 1) { print }}' CHANGELOG.md > RELEASE_NOTES.md
- name: Store Release Notes
uses: actions/upload-artifact@v3
with:
name: release-notes
path: RELEASE_NOTES.md

pypi-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,13 +95,14 @@ jobs:
with:
name: man-page
path: man
- name: Create a GitHub release
uses: marvinpinto/action-automatic-releases@latest
- name: Download release notes
uses: actions/download-artifact@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
title: Release v${{ needs.versions.outputs.release-version }}
files: |
dist/*
man/pyee.1
name: release-notes
path: RELEASE_NOTES.md
- name: Create a GitHub release
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash
run: |
gh release create '${{ github.ref }}' --title 'Release v${{ needs.versions.outputs.release-version }}' --notes "$(cat RELEASE_NOTES.md)" dist/* man/pyee.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2024/08/30 Version 11.1.1

- Add project URLs to pyproject.toml and PyPI
- Use ActionLint v2
- Fix GitHub release action

## 2023/11/23 Version 11.1.0

- Generate a man page with Sphinx (in addition to mkdocs HTML)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyee"
version = "11.1.0"
version = "11.1.1"
authors = [
{name = "Josh Holbrook", email = "[email protected]"}
]
Expand Down

0 comments on commit 2d666a9

Please sign in to comment.