Skip to content

Commit

Permalink
ci: remove use of set ouput that id deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfaller committed Jan 20, 2024
1 parent ba58e71 commit 917333d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build-test-gumtree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,19 @@ jobs:
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
VERSION: ${{ steps.version.outputs.VERSION }}
if: "github.event_name == 'schedule' && contains(VERSION, 'SNAPSHOT')"
if: "github.event_name == 'schedule' && contains(steps.version.outputs.VERSION, 'SNAPSHOT')"
run: ./gradlew publish

- name: upload release package
if: "github.event_name == 'push' && !contains(steps.version.outputs.VERSION, 'SNAPSHOT') && endsWith(github.ref, steps.version.outputs.VERSION)"
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
ORG_GRADLE_PROJECT_gumtreeKey: ${{ secrets.GUMTREE_KEY }}
ORG_GRADLE_PROJECT_gumtreeKeyPassphrase: ${{ secrets.GUMTREE_KEY_PASSPHRASE }}
VERSION: ${{ steps.version.outputs.VERSION }}
if: "github.event_name == 'push' && !contains(VERSION, 'SNAPSHOT') && endsWith(github.ref, steps.version.outputs.version)"
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- name: create github release
env:
VERSION: ${{ steps.version.outputs.VERSION }}
if: "github.event_name == 'push' && !contains(VERSION, 'SNAPSHOT') && endsWith(github.ref, steps.version.outputs.version)"
if: "github.event_name == 'push' && !contains(steps.version.outputs.VERSION, 'SNAPSHOT') && endsWith(github.ref, steps.version.outputs.VERSION)"
uses: ncipollo/release-action@v1
with:
artifacts: "dist/build/distributions/gumtree*.zip"
Expand Down

0 comments on commit 917333d

Please sign in to comment.