-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate github cli from hub to gh (hub is deprecated) see annoncement actions/runner-images#8362 Signed-off-by: Vincent Gramer <[email protected]> * github actions: bump checkout action from v2 to v4 Signed-off-by: Vincent Gramer <[email protected]> * github actions / test workflow: remove fail-fast strategy=false. it's only apply to matrix build which has been remove in previous version Signed-off-by: Vincent Gramer <[email protected]> * github actions bump gradle/wrapper-validation-action to v1.1.0 Signed-off-by: Vincent Gramer <[email protected]> * github actions bump actions/setup-java to v4 Signed-off-by: Vincent Gramer <[email protected]> * github actions: use gradle/gradle-build-action to setup gradle and remove cache action (too big so never loaded) Signed-off-by: Vincent Gramer <[email protected]> * github actions: set publish channel as secret to avoid publish release when testing workflow Signed-off-by: Vincent Gramer <[email protected]> * github action: remove tests in publish workflow Signed-off-by: Vincent Gramer <[email protected]> --------- Signed-off-by: Vincent Gramer <[email protected]> Signed-off-by: Vincent Gramer <[email protected]>
- Loading branch information
Showing
6 changed files
with
45 additions
and
62 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 |
---|---|---|
|
@@ -7,34 +7,32 @@ jobs: | |
check-gradle-wrapper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@v1.1.0 | ||
|
||
publish_plugin: | ||
runs-on: ubuntu-latest | ||
needs: [check-gradle-wrapper] | ||
env: | ||
ORG_GRADLE_PROJECT_publishChannel: stable | ||
ORG_GRADLE_PROJECT_publishChannel: ${{ secrets.PUBLISH_CHANNEL }} | ||
ORG_GRADLE_PROJECT_publishToken: ${{ secrets.PUBLISH_TOKEN }} | ||
steps: | ||
# # Cache gradle dependencies | ||
# - uses: actions/cache@v2 | ||
# with: | ||
# path: | | ||
# ~/.gradle/caches | ||
# ~/.gradle/wrapper | ||
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-gradle- | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: corretto | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: publish plugin | ||
run: | | ||
export ORG_GRADLE_PROJECT_pluginVersion="${GITHUB_REF/refs\/tags\//}" | ||
./gradlew clean :test :plugin:publishPlugin | ||
./gradlew clean :plugin:publishPlugin | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
|
@@ -48,7 +46,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs : [ publish_plugin ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v2 | ||
id: download | ||
|
@@ -58,7 +56,7 @@ jobs: | |
|
||
- name: create or update release note PR | ||
env: | ||
# Required for the `hub` CLI | ||
# Required for the `gh` CLI | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
VERSION="${GITHUB_REF/refs\/tags\//}" | ||
|
@@ -69,4 +67,4 @@ jobs: | |
for file in $(ls ./artifacts/); do assets="${assets} -a ./artifacts/${file}"; done | ||
echo "assets=${assets}" | ||
hub release create -F gh_release_description.md ${assets} "${VERSION}" | ||
gh release create -F gh_release_description.md "${VERSION}" ${assets} |
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
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
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
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
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