Skip to content

Commit 84975d9

Browse files
committed
Make not running deployment steps when running CI for PR
1 parent c4e3c7e commit 84975d9

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
- name: Build Extension
6666
run: clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/extension-formats.c
6767

68-
- name: Notarization
68+
- if: github.event_name != 'pull_request'
69+
name: Notarization
6970
id: notarization
7071
run: chmod +x ./installer/macos/notarize.sh && ./installer/macos/notarize.sh
7172
env:

.github/workflows/build-windows.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ jobs:
141141
devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
142142
mv "Release\DB Browser for SQLite.exe" "Release\DB Browser for SQLCipher.exe"
143143
144-
- name: Create MSI
144+
- if: github.event_name != 'pull_request'
145+
name: Create MSI
145146
env:
146147
ExePath: ${{ github.workspace }}
147148
OpenSSLPath: C:\dev\OpenSSL-${{ matrix.arch }}
@@ -159,15 +160,17 @@ jobs:
159160
mv DB.Browser.for.SQLite-*.msi "DB.Browser.for.SQLite-dev-$(git rev-parse --short HEAD)-$ARCH.msi"
160161
}
161162
162-
- name: Upload artifacts for code signing with SignPath
163+
- if: github.event_name != 'pull_request'
164+
name: Upload artifacts for code signing with SignPath
163165
id: unsigned-artifacts
164166
uses: actions/upload-artifact@v4
165167
with:
166168
name: build-artifacts-${{ matrix.os}}-${{ matrix.arch }}-unsigned
167169
path: installer\windows\DB.Browser.for.SQLite-*.msi
168170

169171
# Change the signing-policy-slug when you release an RC, RTM or stable release.
170-
- name: Code signing with SignPath
172+
- if: github.event_name != 'pull_request'
173+
name: Code signing with SignPath
171174
uses: signpath/[email protected]
172175
with:
173176
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
@@ -178,7 +181,8 @@ jobs:
178181
signing-policy-slug: 'test-signing'
179182
wait-for-completion: true
180183

181-
- name: Create ZIP
184+
- if: github.event_name != 'pull_request'
185+
name: Create ZIP
182186
run: |
183187
$ARCH="${{ matrix.arch }}".ToLower()
184188
$DATE=$(Get-Date -Format "yyyy-MM-dd")
@@ -195,14 +199,16 @@ jobs:
195199
}
196200
Compress-Archive -Path "target\DB Browser for SQLite\*" -DestinationPath $FILENAME_FORMAT
197201
198-
- name: Prepare artifacts
202+
- if: github.event_name != 'pull_request'
203+
name: Prepare artifacts
199204
run: |
200205
mkdir build-artifacts
201206
move installer\windows\DB.Browser.for.SQLite-*.msi build-artifacts\
202207
move DB.Browser.for.SQLite-*.zip build-artifacts\
203208
Compress-Archive -Path build-artifacts\* -DestinationPath build-artifacts-${{ matrix.arch }}.zip
204209
205-
- name: Upload artifacts
210+
- if: github.event_name != 'pull_request'
211+
name: Upload artifacts
206212
uses: actions/upload-artifact@v4
207213
with:
208214
name: build-artifacts-${{ matrix.os }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)