From 20c1c331737f2c54b3c6eeaafb7429c7f845a9d5 Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Wed, 27 Sep 2023 16:14:01 +0200 Subject: [PATCH] build: skip signing packages in pull request builds --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 187aec3..d87a6a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,14 +148,14 @@ jobs: with: distribution: goreleaser version: latest - args: release --clean ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot' || '' }} + args: release --clean ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot' || '' }} ${{ github.event_name == 'pull_request' && '--skip sign' || '' }} env: NFPM_KEY_FILE: gpg.key NFPM_DEFAULT_PASSPHRASE: ${{ secrets.MAVEN_GPG_PRIVATE_KEY_PASSWORD }} GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} - name: "[build] Upload packages to internal repositories" - if: ${{ !startsWith(github.ref, 'refs/tags/') }} + if: github.event_name != 'pull_request' run: | REPO_USER="${{ secrets.STEADYBIT_ARTIFACT_SERVER_USERNAME }}:${{ secrets.STEADYBIT_ARTIFACT_SERVER_PASSWORD }}" echo "Uploading deb packages to artifacts server"