Skip to content

chore: release 0.1.3 (#39) #19

chore: release 0.1.3 (#39)

chore: release 0.1.3 (#39) #19

---
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