diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 874ed30..714e8ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,6 +119,9 @@ jobs: # POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.POETRY_PYPI_TOKEN_TESTPYPI }} # POETRY_REPOSITORIES_TESTPYPI_URL: https://test.pypi.org/legacy/ + permissions: + contents: write + steps: - uses: actions/checkout@v3 - uses: ./.github/actions/nix-shell @@ -134,3 +137,9 @@ jobs: [[ "$GITHUB_REF_NAME" == "$POETRY_VERSION" ]] && exit 0 || exit 1 - run: nix-shell --run "poetry publish --build" + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + make_latest: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 2173e38..a1f5c83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog +For future releases, see + +--- + 0.17.1 (2024-03-11) ------------------- diff --git a/RELEASE.md b/RELEASE.md index b6d5f11..ccd0d7d 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,11 +1,13 @@ # How to release a new version -1. Add a new version to CHANGELOG.md. Browse through https://github.com/Pylons/pyramid_openapi3/commits/main to see what was done since last release. Remember to set the correct release date. -1. Set the same version in `pyproject.toml`. +1. Set the new version in `pyproject.toml`. 1. `make lock` 1. `make tests` 1. `export VERSION=` 1. `git add -p && git ci -m "release $VERSION"` -1. `git push origin main` and wait for CircleCI to pass the build. +1. `git push origin main` and wait for GitHub Actions to pass the build. 1. `git tag $VERSION` 1. `git push --tags` + +The Action should build & test the package, and then upload it to PyPI. +Then, automatically create a new GitHub Release with generated changelog.