Skip to content

Commit

Permalink
CI: make also Github Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVanAssche committed Jan 11, 2022
1 parent d14e6f1 commit 9d978a1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,23 @@ Docker Hub:
only:
- tags

# Create Github Releases on new tags
Github Release:
stage: deploy
image: maven:3.5.0-jdk-8
before_script:
- apk add github-cli
script:
# Build fat jar for Github Release
- mvn install -DskipTests=true
# Create Github Release
- TAG=$(git tag -l "v*" --sort=-creatordate | head -n1)
- CHANGES=$(./get-changes.sh)
- echo "Creating Github release $TAG with changes\n$CHANGES"
- gh release create "$TAG" -n "$CHANGES" -t "$TAG" target/*.jar
only:
- tags

###############################
# #
# Automated Mirroring #
Expand Down

0 comments on commit 9d978a1

Please sign in to comment.