Skip to content

Commit fdbfcc4

Browse files
committed
Deploy to Grebedoc directly from GitHub Actions.
This avoids having to pull down the built website when fetching the git repository, especially when done often on developer machines.
1 parent ec62d76 commit fdbfcc4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
run: |
2121
npm ci
2222
npm run minify
23-
- name: Deploy artifact
24-
uses: JamesIves/github-pages-deploy-action@releases/v4
25-
with:
26-
folder: dist/
27-
branch: pages
28-
single-commit: true
23+
- name: Upload website to Grebedoc
24+
run: |
25+
set -o pipefail
26+
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)