File tree Expand file tree Collapse file tree 1 file changed +25
-24
lines changed
Expand file tree Collapse file tree 1 file changed +25
-24
lines changed Original file line number Diff line number Diff line change @@ -137,36 +137,37 @@ jobs:
137137 run : |
138138 mvn -B install --file pom.xml
139139
140- # publish:
141- # runs-on: ubuntu-latest
142- # if: ${{ github.repository == 'aws-powertools/powertools-lambda-java' }}
143- # needs:
144- # - build
145- # environment: Release
146- # steps:
147- # - id: download_source
148- # name: Download artifacts
149- # uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.6.1
150- # with:
151- # name: source
152- # - name: Setup Java
153- # uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
154- # with:
155- # distribution: corretto
156- # java-version: 21
157- # cache: maven
158- # - name: Publish package
159- # run: mvn -Prelease clean deploy -DskipTests
160- # env:
161- # MAVEN_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
162- # MAVEN_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
163- # GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
140+ publish :
141+ runs-on : ubuntu-latest
142+ if : ${{ github.repository == 'aws-powertools/powertools-lambda-java' }}
143+ needs :
144+ - build
145+ environment : Release
146+ steps :
147+ - id : download_source
148+ name : Download artifacts
149+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.6.1
150+ with :
151+ name : source
152+ - name : Setup Java
153+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
154+ with :
155+ distribution : corretto
156+ java-version : 21
157+ cache : maven
158+ - name : Publish package
159+ run : mvn -Prelease clean deploy -DskipTests
160+ env :
161+ MAVEN_USERNAME : ${{ secrets.OSSRH_JIRA_USERNAME }}
162+ MAVEN_PASSWORD : ${{ secrets.OSSRH_JIRA_PASSWORD }}
163+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
164164
165165 create_pr :
166166 runs-on : ubuntu-latest
167167 if : ${{ inputs.snapshot == false }}
168168 needs :
169169 - build
170+ - publish
170171 permissions :
171172 pull-requests : write
172173 contents : write
You can’t perform that action at this time.
0 commit comments