Merge pull request #17 from swisscom/feature/contributing-guidelines #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
check: | |
uses: ./.github/workflows/check.yml | |
release: | |
needs: | |
- check | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Create Changelog and Tag | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@v5 | |
with: | |
github-token: '' | |
preset: 'conventionalcommits' | |
output-file: 'docs/CHANGELOG.md' | |
skip-version-file: true | |
skip-on-empty: false | |
- uses: gradle/actions/setup-gradle@v4 | |
- name: Publish to GitHub Packages | |
run: ./gradlew publish -Prelease.useLastTag=true | |
env: | |
ORG_GRADLE_PROJECT_mavenPublishUser: ${{ github.actor }} | |
ORG_GRADLE_PROJECT_mavenPublishPassword: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
make_latest: 'true' | |
files: | | |
build/libs/*.jar | |
build/packageCompose/*.zip |