Skip to content

Commit 9ac92c7

Browse files
committed
Don't upload the built website from other branches during CI.
1 parent 8725d83 commit 9ac92c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
run: |
2121
npm ci
2222
npm run minify
23-
- name: Upload website to Grebedoc
23+
- if: ${{ github.repository == 'GlasgowEmbedded/webusb' && github.event.ref == 'refs/heads/main' }}
24+
name: Upload website to Grebedoc
2425
run: |
2526
set -o pipefail
2627
tar -C dist -c . | zstd -T0 -1 | curl https://webusb.glasgow-embedded.org/ -X PUT -H "Authorization: Pages ${{ secrets.GREBEDOC_TOKEN }}" -H "Content-Type: application/x-tar+zstd" -T -

0 commit comments

Comments
 (0)