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

Commit

Permalink
bump: version 0.12.3 → 0.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Sep 19, 2020
1 parent 6e702d1 commit 2dee7e4
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
@@ -1,6 +1,6 @@
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.12.3"
version = "0.12.4"
tag_format = "v$version"
version_files = [
"./Taskfile.yml"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Expand Up @@ -13,7 +13,9 @@ jobs:
uses: Arduino/actions/setup-taskfile@master
with:
version: "3"
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -12,7 +12,6 @@ __pycache__/
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
Expand Down
12 changes: 3 additions & 9 deletions Taskfile.yml
@@ -1,7 +1,7 @@
version: "3"

env:
GCGC_VERSION: v0.12.3
GCGC_VERSION: v0.12.4

tasks:
ci-test:
Expand All @@ -28,14 +28,8 @@ tasks:
- 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
- docker-compose build hub
- docker-compose run hub
env:
GITHUB_TOKEN:
sh: echo "$GITHUB_TOKEN"
Expand Down
7 changes: 7 additions & 0 deletions build/hub/Dockerfile
@@ -0,0 +1,7 @@
FROM python

RUN apt-get update && \
apt-get install --no-install-recommends -y git hub && \
python -m pip install --pre -U commitizen

ENTRYPOINT ["/bin/bash", "/src/build/hub/make-release.sh"]
19 changes: 19 additions & 0 deletions build/hub/make-release.sh
@@ -0,0 +1,19 @@
#!/usr/bin/env sh
#######################################################################
# Make the release for GCGC. #
#######################################################################

LAST_TAG="$(git tag --sort=-v:refname | head -n 2 | tail -n 1)"
CURRENT_TAG="$(git tag --sort=-v:refname | head -n 1)"

cz ch --start-rev "$LAST_TAG"

echo "Making release with $LAST_TAG and $CURRENT_TAG."
echo "Current CHANGELOG:"
cat ./CHANGELOG.md

if [ -z "$GITHUB_TOKEN" ]; then
echo "GITHUB_TOKEN needs to be set."
exit 1
fi
GITHUB_USER=tshauck HUB_VERBOSE=1 hub release create "$CURRENT_TAG" -F ./CHANGELOG.md
10 changes: 10 additions & 0 deletions docker-compose.yml
Expand Up @@ -21,3 +21,13 @@ services:
- $PWD:/project
working_dir: /project
command: [poetry]
hub:
build:
context: .
dockerfile: ./build/hub/Dockerfile
image: hub
working_dir: /src
volumes:
- ./:/src
environment:
GITHUB_TOKEN: "${GITHUB_TOKEN}"

0 comments on commit 2dee7e4

Please sign in to comment.