Skip to content

Commit

Permalink
Make not running deployment steps when running CI for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucydodo committed Jun 14, 2024
1 parent c4e3c7e commit 84975d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
- name: Build Extension
run: clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/extension-formats.c

- name: Notarization
- if: github.event_name != 'pull_request'
name: Notarization
id: notarization
run: chmod +x ./installer/macos/notarize.sh && ./installer/macos/notarize.sh
env:
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ jobs:
devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
mv "Release\DB Browser for SQLite.exe" "Release\DB Browser for SQLCipher.exe"
- name: Create MSI
- if: github.event_name != 'pull_request'
name: Create MSI
env:
ExePath: ${{ github.workspace }}
OpenSSLPath: C:\dev\OpenSSL-${{ matrix.arch }}
Expand All @@ -159,15 +160,17 @@ jobs:
mv DB.Browser.for.SQLite-*.msi "DB.Browser.for.SQLite-dev-$(git rev-parse --short HEAD)-$ARCH.msi"
}
- name: Upload artifacts for code signing with SignPath
- if: github.event_name != 'pull_request'
name: Upload artifacts for code signing with SignPath
id: unsigned-artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os}}-${{ matrix.arch }}-unsigned
path: installer\windows\DB.Browser.for.SQLite-*.msi

# Change the signing-policy-slug when you release an RC, RTM or stable release.
- name: Code signing with SignPath
- if: github.event_name != 'pull_request'
name: Code signing with SignPath
uses: signpath/github-action-submit-signing-request@v0.4
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
Expand All @@ -178,7 +181,8 @@ jobs:
signing-policy-slug: 'test-signing'
wait-for-completion: true

- name: Create ZIP
- if: github.event_name != 'pull_request'
name: Create ZIP
run: |
$ARCH="${{ matrix.arch }}".ToLower()
$DATE=$(Get-Date -Format "yyyy-MM-dd")
Expand All @@ -195,14 +199,16 @@ jobs:
}
Compress-Archive -Path "target\DB Browser for SQLite\*" -DestinationPath $FILENAME_FORMAT
- name: Prepare artifacts
- if: github.event_name != 'pull_request'
name: Prepare artifacts
run: |
mkdir build-artifacts
move installer\windows\DB.Browser.for.SQLite-*.msi build-artifacts\
move DB.Browser.for.SQLite-*.zip build-artifacts\
Compress-Archive -Path build-artifacts\* -DestinationPath build-artifacts-${{ matrix.arch }}.zip
- name: Upload artifacts
- if: github.event_name != 'pull_request'
name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os }}-${{ matrix.arch }}
Expand Down

0 comments on commit 84975d9

Please sign in to comment.