Skip to content

Commit bc96e2c

Browse files
authored
Use receive-web-notification (#405)
1 parent 319165d commit bc96e2c

File tree

6 files changed

+27
-82
lines changed

6 files changed

+27
-82
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
on:
22
workflow_dispatch:
33
workflow_call:
4+
push:
5+
branches: [master]
46

57
permissions:
68
contents: write
@@ -16,32 +18,22 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v5
19-
with:
20-
path: repo
2121

2222
- uses: pnpm/action-setup@v4
2323
with:
24-
package_json_file: repo/package.json
25-
run_install: |
26-
- cwd: repo
24+
run_install: true
2725

28-
- uses: actions/setup-node@v5
29-
with:
30-
node-version: 22.20.0
31-
cache: pnpm
32-
cache-dependency-path: repo/pnpm-lock.yaml
26+
- uses: actions/setup-node@v6
3327

3428
- id: pages
3529
uses: actions/configure-pages@v5
3630

37-
- working-directory: repo
38-
run: |
31+
- run: |
3932
pnpm build
4033
41-
- name: Upload artifact
42-
uses: actions/upload-pages-artifact@v4
34+
- uses: actions/upload-pages-artifact@v4
4335
with:
44-
path: repo/dist
36+
path: dist
4537

4638
pdf:
4739
runs-on: ubuntu-latest
@@ -50,32 +42,21 @@ jobs:
5042
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5143
steps:
5244
- uses: actions/checkout@v5
53-
with:
54-
path: repo
5545

5646
- uses: pnpm/action-setup@v4
5747
with:
58-
package_json_file: repo/package.json
59-
run_install: |
60-
- cwd: repo
48+
run_install: true
6149

6250
- uses: actions/setup-node@v5
63-
with:
64-
node-version: 22.20.0
65-
cache: pnpm
66-
cache-dependency-path: repo/pnpm-lock.yaml
6751

68-
- working-directory: repo
69-
run: |
52+
- run: |
7053
pnpm puppeteer browsers install chrome
7154
72-
- working-directory: repo
73-
run: |
55+
- run: |
7456
pnpm dev &
7557
echo $! > dev_server.pid
7658
77-
- working-directory: repo
78-
run: |
59+
- run: |
7960
echo "Waiting for dev server on http://localhost:4321/manual-xt/ ..."
8061
for i in {1..30}; do
8162
if curl --output /dev/null --silent --head --fail http://localhost:4321/manual-xt/; then
@@ -86,21 +67,18 @@ jobs:
8667
sleep 2
8768
done
8869
89-
- working-directory: repo
90-
run: |
70+
- run: |
9171
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
9272
pnpm pdf
9373
94-
- working-directory: repo
95-
if: always()
74+
- if: always()
9675
run: |
9776
if [ -f dev_server.pid ]; then
9877
kill $(cat dev_server.pid) || true
9978
rm dev_server.pid
10079
fi
10180
102-
- working-directory: repo
103-
run: |
81+
- run: |
10482
gh release delete surge-xt-manual -y
10583
gh release create surge-xt-manual dist/Surge-XT-Manual.pdf -t "Surge XT Manual" -n "PDF version of the Surge XT Manual"
10684

.github/workflows/push.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on:
2+
repository_dispatch:
3+
4+
jobs:
5+
receive-web-notification:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v5
9+
with:
10+
token: ${{ secrets.WEB }}
11+
12+
- uses: surge-synthesizer/sst-githubactions/receive-web-notification@main

.github/workflows/surge-build-nightly.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/surge-build-stable.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
25.0.0

0 commit comments

Comments
 (0)