Skip to content

Commit

Permalink
Update GitHub Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
DenWav committed Jul 20, 2023
1 parent fc1ac71 commit 0678307
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- name: Get project version
id: get_version
shell: bash
run: |
project_version=$(./gradlew -q --console=plain printVersion --no-daemon)
project_version=$(./gradlew -q --console=plain printVersion)
echo "version=$project_version" >> $GITHUB_OUTPUT
- name: Deploy snapshot version
if: endsWith(steps.get_version.outputs.version, '-SNAPSHOT')
run: ./gradlew publishMavenPublicationToSonatypeRepository --no-daemon --stacktrace
run: ./gradlew publishMavenPublicationToSonatypeRepository --no-daemon
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon --stacktrace
- uses: gradle/gradle-build-action@v2
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Expand All @@ -32,7 +33,6 @@ jobs:
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: true
stripGeneratorNotice: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Test
on:
push:
branches: ['*']
branches: ['**']
pull_request:
branches: ['*']
branches: ['**']

jobs:
test:
Expand All @@ -15,6 +15,7 @@ jobs:
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build --no-daemon --stacktrace
- uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace

0 comments on commit 0678307

Please sign in to comment.