Skip to content

Commit

Permalink
build: skip signing packages in pull request builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Sep 27, 2023
1 parent 2a20075 commit 20c1c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 20c1c33

Please sign in to comment.