From 289a8dd74fd497eacce77ce618ae502ecb7907cd Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 14 Jun 2021 18:37:25 +0200 Subject: [PATCH] Automate the release process with GitHub Actions --- .github/workflows/ci.yaml | 16 ++++++++++++++++ CHANGELOG.md | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9f4ad0f..e8a32e4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,3 +73,19 @@ jobs: name: dist path: dist - run: twine check dist/* + + dist_upload: + runs-on: ubuntu-latest + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + needs: [dist_check] + name: PyPI upload + steps: + - uses: actions/download-artifact@v2 + with: + name: dist + path: dist + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 519dc94..d7513d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ All notable changes to `flask-compress` will be documented in this file. ## 1.10 (development) -- Improve GitHub Actions +- Automate the release process with GitHub Actions +- Use `setuptools_scm` to manage package versions - The layout is now an actual package rather than a single module -- Use `setuptools_scm` to manage packaging - Clean up unused files ## 1.9.0 (2021-02-12)