Skip to content

Commit 3d1fc91

Browse files
author
Piotr Gulbinowicz
committed
update pwa static build
1 parent e07e389 commit 3d1fc91

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/deploy-pwa.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
uses: actions/checkout@v4
3131
- name: Setup Pages
3232
uses: actions/configure-pages@v5
33+
- name: Install wget
34+
run: sudo apt-get update && sudo apt-get install -y wget
35+
- name: Install Tailwind CLI
36+
run: |
37+
wget https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.14/tailwindcss-linux-x64 &&
38+
chmod +x tailwindcss-linux-x64 &&
39+
sudo mv tailwindcss-linux-x64 /usr/bin/tailwindcss
3340
- name: Setup Go environment
3441
uses: actions/setup-go@v5.0.2
3542
with:
@@ -40,10 +47,12 @@ jobs:
4047
run: |
4148
cd pwa &&
4249
mkdir -p ./app/web &&
50+
mv ./web/* ./app/web/ &&
4351
echo -n ${{ vars.FLUSH_API_URL }} > ./app/web/apiurl &&
4452
GOARCH=wasm GOOS=js go build -o ./app/web/app.wasm ./main/main.go &&
4553
BUILD_STATIC=true go build -o ./flush-log ./main/main.go &&
4654
./flush-log &&
55+
tailwindcss -i ./app/web/tailwind-input.css -o ./app/web/style.css --minify
4756
ls -ltrRa &&
4857
mv ./*.html ./*.webmanifest ./*.js ./*.css ./app &&
4958
mv app ..

0 commit comments

Comments
 (0)