Skip to content

Commit

Permalink
build: likely fix release-pls?, add release upload
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed May 4, 2024
1 parent 0d0866b commit 187407a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/config/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.1.0"
}
13 changes: 13 additions & 0 deletions .github/config/release-please.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"pull-request-title-pattern": "Release ${version}",
"extra-files": [ "gradle.properties" ],
"packages": {
".": {
"component": "group-whitelist",
"include-component-in-tag": false
}
}
}
25 changes: 23 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,26 @@ jobs:
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: java
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
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 }}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# {x-release-please-start-version}
version = 1.1.0
# {x-release-please-end}
version_with_commit = ''

0 comments on commit 187407a

Please sign in to comment.