diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec0ff317..6610fb96 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -110,3 +110,20 @@ jobs: fi twine check dist/* twine upload dist/* + + deploy-github-release: + # only deploy on tags, see https://stackoverflow.com/a/58478262/1320237 + if: startsWith(github.ref, 'refs/tags/v') + needs: + - run-tests + runs-on: ubuntu-latest + environment: + name: github-release + steps: + - uses: actions/checkout@v2 + - name: create release + uses: elgohr/Github-Release-Action@v4 + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + with: + title: ${{ github.ref_name }} diff --git a/CHANGES.rst b/CHANGES.rst index 7d0b6da4..0c57ecdf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -16,7 +16,9 @@ Breaking changes: New features: -- ... +- icalendar releases are deployed to Github releases + Fixes: #563 + [jacadzaca] Bug fixes: