Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
fix: auto releases on github (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Sep 19, 2020
1 parent 6bb1322 commit 6e702d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Expand Up @@ -18,6 +18,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Github Release
run: task gh-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: task publish
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
CHANGELOG.md
gcgc/data
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
13 changes: 13 additions & 0 deletions Taskfile.yml
Expand Up @@ -26,6 +26,19 @@ tasks:
test:
cmds:
- docker-compose run gcgc pytest --strict --doctest-modules -v -s --cov-report term-missing --cov=gcgc
gh-release:
cmds:
- python -m pip install --pre -U commitizen
- cz ch --start-rev {{ .LAST_TAG }}
- gh release create {{ .CURRENT_TAG }} -F CHANGELOG.md
vars:
LAST_TAG:
sh: git tag --sort=-v:refname | grep 'v\d\{1,2\}\.\d\{1,2\}\.\d\{1,2\}$' | head -n 2 | tail -n 1
CURRENT_TAG:
sh: git tag --sort=-v:refname | grep 'v\d\{1,2\}\.\d\{1,2\}\.\d\{1,2\}$' | head -n 1
env:
GITHUB_TOKEN:
sh: echo "$GITHUB_TOKEN"
publish:
cmds:
- python -m pip install --pre -U poetry twine
Expand Down

0 comments on commit 6e702d1

Please sign in to comment.