Skip to content

Commit 8467e71

Browse files
author
Piotr Gulbinowicz
committed
fix & improve static deploy
1 parent dd3b249 commit 8467e71

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/static.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Deploy static content to Pages
22

33
on:
4-
push:
5-
branches: ["main"]
6-
7-
workflow_dispatch:
4+
workflow_run:
5+
workflows:
6+
- Run API tests
7+
- Run PWA tests
8+
branches:
9+
- main
10+
types:
11+
- completed
812

913
permissions:
1014
contents: read
@@ -37,8 +41,8 @@ jobs:
3741
cd pwa &&
3842
mkdir -p ./app/web &&
3943
echo -n ${{ vars.FLUSH_API_URL }} > ./app/web/apiurl &&
40-
GOARCH=wasm GOOS=js go build -o ./app/web/app.wasm &&
41-
BUILD_STATIC=true go build &&
44+
GOARCH=wasm GOOS=js go build -o ./app/web/app.wasm ./main/main.go &&
45+
BUILD_STATIC=true go build -o ./flush-log ./main/main.go &&
4246
./flush-log &&
4347
ls -ltrRa &&
4448
mv ./*.html ./*.webmanifest ./*.js ./*.css ./app &&

0 commit comments

Comments
 (0)