Merge pull request #71 from bw-company/KengoTODA-patch-1 #33
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
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
steps: | |
- uses: googleapis/release-please-action@v3 | |
with: | |
release-type: java | |
package-name: uke-pseudonymize | |
include-v-in-tag: false | |
publish: | |
runs-on: ubuntu-latest | |
needs: | |
- release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- run: ./gradlew build --no-daemon -Pversion="${{ steps.release.outputs.tag_name }}" | |
- name: Upload distributions to GitHub Releases | |
run: > | |
gh release upload | |
"${{ needs.release-please.outputs.tag_name }}" | |
app/build/distributions/uke-pseudonymize.tar | |
app/build/distributions/uke-pseudonymize.zip | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: Gradle reports | |
path: app/build/reports |