Skip to content

Commit

Permalink
build: try a different upload approach
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed May 4, 2024
1 parent 26786ab commit 52c42ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
3 changes: 0 additions & 3 deletions .github/config/.release-please-manifest.json

This file was deleted.

13 changes: 0 additions & 13 deletions .github/config/release-please.json

This file was deleted.

31 changes: 9 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,12 @@ jobs:
- uses: google-github-actions/release-please-action@v4
with:
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 }}
release-type: simple
extra-files: gradle.properties
include-v-in-tag: false
- 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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {x-release-please-start-version}
version = 1.2.0
version = 1.0.0
# {x-release-please-end}
version_with_commit = ''

0 comments on commit 52c42ea

Please sign in to comment.