From 2f86bb6a8cd7f025193213ca41a28005cc167b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Sun, 27 Aug 2023 15:04:23 +0200 Subject: [PATCH] [BUG] deployment v2 first one didnt work quite as expected :) --- .github/workflows/static.yml | 4 +-- .gitignore | 1 + README.md | 14 ++++++++- build.sh | 4 +++ installer/index.html | 58 ++++++++++++++++++------------------ 5 files changed, 49 insertions(+), 32 deletions(-) create mode 100644 .gitignore create mode 100644 build.sh diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index fb7e662..54ab1df 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -22,7 +22,6 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying deploy: environment: name: github-pages @@ -31,12 +30,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: copy main assets + run: sh build.sh - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - # Upload entire repository path: "installer" - name: Deploy to GitHub Pages id: deployment diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c4eedb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +installer/main_assets diff --git a/README.md b/README.md index 4db2a21..55c75aa 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Mountains Mountains - + ### 👉 An absolutely incredible ,bitcoinSwitch guide by Axel 👈 @@ -47,3 +47,15 @@ For use with LNURLDevice in LNbits. - Upload to device ![trigger](https://user-images.githubusercontent.com/33088785/166829947-d0194b32-19fc-4a16-83d3-dc6f9af9337c.gif) + + +### development +fetch main assets from lnbits.github.io +```console +sh build.sh +``` +start preview +```console +cd installer +http-server -p 8080 +``` diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..1b0f5b2 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +git clone https://github.com/lnbits/lnbits.github.io mainpage +cp -r ./mainpage/assets ./installer/main_assets +rm -rf mainpage diff --git a/installer/index.html b/installer/index.html index f3708ac..a2b3552 100644 --- a/installer/index.html +++ b/installer/index.html @@ -29,13 +29,13 @@ - + - - - - + + + + @@ -48,7 +48,7 @@
- tdisplay-image - shape - shape + tdisplay-image + shape + shape
@@ -349,13 +349,13 @@
lnbits.com