Skip to content

Commit

Permalink
ci: output values between jobs and remove release type on workflow (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas authored Oct 17, 2024
1 parent fcd8284 commit 0a3c5fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ jobs:
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.GITHUB_TOKEN }}
release-type: maven

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 }}
Expand All @@ -44,4 +48,4 @@ jobs:
if: ${{ needs.release-please.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release-please.outputs.tag_name }} ./target/shadow-${{ steps.release-please.outputs.major }}.${{ steps.release-please.outputs.minor }}.${{ steps.release-please.outputs.patch }}.jar
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
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"extra-files": [
{
"type": "generic",
"path": "./src/main/java/ch/heigvd/dai/commands/Root.java"
"path": "src/main/java/ch/heigvd/dai/commands/Root.java"
}
],
"include-v-in-tag": true,
Expand Down

0 comments on commit 0a3c5fe

Please sign in to comment.