-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create release please manifest and config file and ci workflow
- Loading branch information
1 parent
8d5c430
commit c46e784
Showing
4 changed files
with
139 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Run Release Please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
|
||
# Release-please creates a PR that tracks all changes | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
release-type: simple | ||
command: manifest | ||
token: ${{secrets.TOKEN_PUBLISH}} | ||
default-branch: main | ||
|
||
- name: Dump Release Please Output | ||
env: | ||
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }} | ||
run: | | ||
echo "$RELEASE_PLEASE_OUTPUT" | ||
# Outputs are namespaced by package when using a manifest in Release Please | ||
outputs: | ||
release_created: ${{ steps.release.outputs['Provider--release_created'] }} | ||
# Version doesn't include `v` as a prefix. This is undocumented | ||
version: ${{ steps.release.outputs['Provider--version'] }} | ||
upload_url: ${{ steps.release.outputs['Provider--upload_url'] }} | ||
|
||
kotlin-release: | ||
needs: release-please | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.release-please.outputs.release_created }} | ||
steps: | ||
# The logic below handles the github release: | ||
- name: Cache Gradle and wrapper | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Grant Permission for Gradlew to Execute | ||
run: chmod +x gradlew | ||
|
||
- name: Build AAR βοΈπ | ||
env: | ||
OF_KOTLIN_RELEASE_VERSION: ${{ needs.release-please.outputs.version }} | ||
run: bash ./gradlew :provider:assemble | ||
|
||
- name: Upload Openfeature SDK AAR π³ | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN_PUBLISH }} | ||
with: | ||
upload_url: ${{ needs.release-please.outputs.upload_url }} | ||
asset_path: Provider/build/outputs/aar/Provider-release.aar | ||
asset_name: openfeature-sdk.aar | ||
asset_content_type: application/aar |
This file was deleted.
Oops, something went wrong.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"bootstrap-sha": "fe4d0c5e5553cf34a4089e52de5324370bb933dd", | ||
"packages": { | ||
"Provider": { | ||
"release-type": "simple", | ||
"bump-minor-pre-major": true, | ||
"bump-patch-for-minor-pre-major": true, | ||
"versioning": "default" | ||
} | ||
}, | ||
"changelog-sections": [ | ||
{ | ||
"type": "fix", | ||
"section": "π Bug Fixes" | ||
}, | ||
{ | ||
"type": "feat", | ||
"section": "β¨ New Features" | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "π§Ή Chore" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "π Documentation" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "π Performance" | ||
}, | ||
{ | ||
"type": "build", | ||
"hidden": true, | ||
"section": "π οΈ Build" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "π¦ Dependencies" | ||
}, | ||
{ | ||
"type": "ci", | ||
"hidden": true, | ||
"section": "π¦ CI" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "π Refactoring" | ||
}, | ||
{ | ||
"type": "revert", | ||
"section": "π Reverts" | ||
}, | ||
{ | ||
"type": "style", | ||
"hidden": true, | ||
"section": "π¨ Styling" | ||
}, | ||
{ | ||
"type": "test", | ||
"hidden": true, | ||
"section": "π§ͺ Tests" | ||
} | ||
], | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |