Skip to content

Commit

Permalink
build: use gh release directly
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed May 5, 2024
1 parent b590b23 commit 14aa8c1
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/config/release-please.json
manifest-file: .github/config/.release-please-manifest.json
outputs:
paths_released: ${{ steps.release-please.outputs.paths_released }}
releases: ${{ toJson(steps.release-please.outputs) }}

publish:
name: publish release
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release.outputs.paths_released != '[]' }}
strategy:
fail-fast: false
matrix:
path: ${{ fromJson(needs.release.outputs.paths_released) }}
steps:
- name: upload artifacts
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ fromJson(needs.release.outputs.releases)[matrix.path == '.' && 'tag_name' || format('{0}--tag_name', matrix.path)] }}
files: ${{ matrix.path }}/**/build/libs/*
token: ${{ secrets.GITHUB_TOKEN }}
- name: upload release artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.release.outputs.tag_name }} build/libs/*.jar

0 comments on commit 14aa8c1

Please sign in to comment.