Skip to content

Commit

Permalink
add deploy-github-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jacadzaca committed Sep 30, 2023
1 parent 0fdbdfb commit d1513fd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Breaking changes:

New features:

- ...
- icalendar releases are deployed to Github releases
Fixes: #563
[jacadzaca]

Bug fixes:

Expand Down

0 comments on commit d1513fd

Please sign in to comment.