Skip to content

Commit b4c673b

Browse files
committed
move fork conditionals to the publish to github pages step
1 parent d7bbb55 commit b4c673b

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/upload_release_github_packages.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,12 @@ jobs:
2929
java-version: '8'
3030
distribution: 'temurin'
3131

32-
- name: Set Revision
33-
id: revision
34-
run : |
35-
if [ "${{ github.repository_owner }}" = "teragrep" ]; then
36-
echo "revision=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
32+
- name: Publish to GitHub Packages
33+
run: |
34+
if [ "${{ github.repository_owner }}" = "teragrep" ]; then
35+
mvn --batch-mode -Drevision=${{ github.event.release.tag_name }} -Dsha1= -Dchangelist= -Dgithub.packages.url="https://maven.pkg.github.com/${{ github.repository_owner }}/pth_06" clean deploy -Ppublish-github-packages
3736
else
38-
echo "revision=${{ github.event.release.tag_name }}-${{ github.actor }}" >> $GITHUB_OUTPUT
37+
mvn --batch-mode -Drevision=${{ github.event.release.tag_name }}-${{ github.actor }} -Dsha1= -Dchangelist= -Dgithub.packages.url="https://maven.pkg.github.com/${{ github.repository_owner }}/pth_06" -Dgpg.skip=true clean deploy -Ppublish-github-packages
3938
fi
40-
41-
- name: Publish to GitHub Packages
42-
run: mvn --batch-mode -Drevision=${{ steps.revision.outputs.revision }} -Dsha1= -Dchangelist= -Dgithub.packages.url="https://maven.pkg.github.com/${{ github.repository_owner }}/pth_06" clean deploy -Ppublish-github-packages
4339
env:
4440
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@
776776
</repository>
777777
</distributionManagement>
778778
<properties>
779-
<gpg.skip>${env.GITHUB_ACTOR != 'teragrep'}</gpg.skip>
780779
<jooq.regenerate.skip>true</jooq.regenerate.skip>
781780
</properties>
782781
<build>

0 commit comments

Comments
 (0)