Skip to content

ci: change name of Docker image and fix badge (#34) #14

ci: change name of Docker image and fix badge (#34)

ci: change name of Docker image and fix badge (#34) #14

---
name: "release-please"
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
major: ${{ steps.release-please.outputs.major }}
minor: ${{ steps.release-please.outputs.minor }}
patch: ${{ steps.release-please.outputs.patch }}
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
token: ${{ secrets.PAT_GITHUB_TOKEN }}
upload-release-artifact:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
steps:
- name: "Check out the repository"
if: ${{ needs.release-please.outputs.releases_created }}
uses: actions/checkout@v4
- name: "Setup Java and Maven"
if: ${{ needs.release-please.outputs.releases_created }}
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: "Package JAR using Maven wrapper"
if: ${{ needs.release-please.outputs.releases_created }}
run: ./mvnw dependency:go-offline clean compile package
- name: "Upload Release Artifact"
if: ${{ needs.release-please.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} ./target/shadow-${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }}.${{ needs.release-please.outputs.patch }}.jar