-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use quotes and emojis in step names for easier reading.
- Loading branch information
Showing
2 changed files
with
22 additions
and
13 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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
name: Tests | ||
name: "Tests" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
- name: "π₯ Checkout repository" | ||
uses: actions/checkout@v4 | ||
- name: "βοΈ Set up JDK" | ||
uses: actions/setup-java@v4 | ||
with: { java-version: 11, distribution: temurin } | ||
- uses: gradle/actions/setup-gradle@v4 | ||
- name: "π Set up Gradle" | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | ||
build-scan-terms-of-use-agree: "yes" | ||
- run: ./gradlew check | ||
- name: "β Run tests" | ||
run: > | ||
./gradlew | ||
check |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release | ||
name: "Release" | ||
|
||
on: | ||
release: | ||
|
@@ -13,25 +13,28 @@ jobs: | |
GIT_USER_EMAIL: [email protected] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
- name: "π₯ Checkout repository" | ||
uses: actions/checkout@v4 | ||
- name: "βοΈ Set up JDK" | ||
uses: actions/setup-java@v4 | ||
with: { java-version: 11, distribution: temurin } | ||
- uses: gradle/actions/setup-gradle@v4 | ||
- name: "π Set up Gradle" | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | ||
build-scan-terms-of-use-agree: "yes" | ||
|
||
- name: Get the release version from the release tag and set it in gradle.properties | ||
- name: "π’ Get the release version from the release tag and set it in gradle.properties" | ||
uses: matrei/github-actions/pre-release@main | ||
|
||
- name: Generate key file for artifact signing | ||
- name: "π Generate key file for artifact signing" | ||
if: success() | ||
env: | ||
SECRING_FILE: ${{ secrets.SECRING_FILE }} | ||
run: echo "$SECRING_FILE" | base64 -d > ${{ github.workspace }}/secring.gpg | ||
|
||
- name: Publish release artifacts to Sonatype | ||
- name: "π€ Publish release artifacts to Sonatype" | ||
if: success() | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypeOssUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
|
@@ -46,6 +49,6 @@ jobs: | |
publishToSonatype | ||
closeAndReleaseSonatypeStagingRepository | ||
- name: Set the next snapshot version in gradle.properties | ||
- name: "π’ Set the next snapshot version in gradle.properties" | ||
if: success() | ||
uses: matrei/github-actions/post-release@main |