From 4781fcf02edbe4e4e91d889053f981d069455f0c Mon Sep 17 00:00:00 2001 From: Stixx <stixx@nostrdev.com> Date: Wed, 6 Nov 2024 13:57:38 +0100 Subject: [PATCH] feat: added CI --- .gitea/workflows/publish.yml | 23 ++++++++++++++++++ .../assets}/bootstrap/css/bootstrap.min.css | 0 .../assets}/bootstrap/js/bootstrap.min.js | 0 {assets => public/assets}/css/filters.css | 0 {assets => public/assets}/css/footer.css | 0 {assets => public/assets}/css/listings.css | 0 {assets => public/assets}/css/nav.css | 0 {assets => public/assets}/css/pagination.css | 0 {assets => public/assets}/css/productCard.css | 0 {assets => public/assets}/css/store.css | 0 {assets => public/assets}/css/storeCard.css | 0 {assets => public/assets}/css/styles.css | 0 ...is-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp | Bin {assets => public/assets}/js/bs-init.js | 0 {assets => public/assets}/js/categoryDrop.js | 0 .../assets}/js/checkboxBetter.js | 0 {assets => public/assets}/js/expandList.js | 0 .../assets}/js/toggleCategories.js | 0 index.html => public/index.html | 8 +++--- productPage.html => public/productPage.html | 8 +++--- products.html => public/products.html | 8 +++--- storePage.html => public/storePage.html | 8 +++--- stores.html => public/stores.html | 8 +++--- 23 files changed, 43 insertions(+), 20 deletions(-) create mode 100644 .gitea/workflows/publish.yml rename {assets => public/assets}/bootstrap/css/bootstrap.min.css (100%) rename {assets => public/assets}/bootstrap/js/bootstrap.min.js (100%) rename {assets => public/assets}/css/filters.css (100%) rename {assets => public/assets}/css/footer.css (100%) rename {assets => public/assets}/css/listings.css (100%) rename {assets => public/assets}/css/nav.css (100%) rename {assets => public/assets}/css/pagination.css (100%) rename {assets => public/assets}/css/productCard.css (100%) rename {assets => public/assets}/css/store.css (100%) rename {assets => public/assets}/css/storeCard.css (100%) rename {assets => public/assets}/css/styles.css (100%) rename {assets => public/assets}/img/why-didnt-booker-immedietly-cover-up-his-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp (100%) rename {assets => public/assets}/js/bs-init.js (100%) rename {assets => public/assets}/js/categoryDrop.js (100%) rename {assets => public/assets}/js/checkboxBetter.js (100%) rename {assets => public/assets}/js/expandList.js (100%) rename {assets => public/assets}/js/toggleCategories.js (100%) rename index.html => public/index.html (98%) rename productPage.html => public/productPage.html (91%) rename products.html => public/products.html (97%) rename storePage.html => public/storePage.html (98%) rename stores.html => public/stores.html (97%) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..a6ea447 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,23 @@ +name: publish +run-name: Publishing the website with a surfer +on: + push: + branches: + - main + +jobs: + Build-and-publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install cloudron surfer from NPM + run: npm -g install cloudron-surfer + + - name: Publish + run: | + surfer put --token ${{ secrets.SURFER_TOKEN }} --server cheems.nostrdev.com public/* / diff --git a/assets/bootstrap/css/bootstrap.min.css b/public/assets/bootstrap/css/bootstrap.min.css similarity index 100% rename from assets/bootstrap/css/bootstrap.min.css rename to public/assets/bootstrap/css/bootstrap.min.css diff --git a/assets/bootstrap/js/bootstrap.min.js b/public/assets/bootstrap/js/bootstrap.min.js similarity index 100% rename from assets/bootstrap/js/bootstrap.min.js rename to public/assets/bootstrap/js/bootstrap.min.js diff --git a/assets/css/filters.css b/public/assets/css/filters.css similarity index 100% rename from assets/css/filters.css rename to public/assets/css/filters.css diff --git a/assets/css/footer.css b/public/assets/css/footer.css similarity index 100% rename from assets/css/footer.css rename to public/assets/css/footer.css diff --git a/assets/css/listings.css b/public/assets/css/listings.css similarity index 100% rename from assets/css/listings.css rename to public/assets/css/listings.css diff --git a/assets/css/nav.css b/public/assets/css/nav.css similarity index 100% rename from assets/css/nav.css rename to public/assets/css/nav.css diff --git a/assets/css/pagination.css b/public/assets/css/pagination.css similarity index 100% rename from assets/css/pagination.css rename to public/assets/css/pagination.css diff --git a/assets/css/productCard.css b/public/assets/css/productCard.css similarity index 100% rename from assets/css/productCard.css rename to public/assets/css/productCard.css diff --git a/assets/css/store.css b/public/assets/css/store.css similarity index 100% rename from assets/css/store.css rename to public/assets/css/store.css diff --git a/assets/css/storeCard.css b/public/assets/css/storeCard.css similarity index 100% rename from assets/css/storeCard.css rename to public/assets/css/storeCard.css diff --git a/assets/css/styles.css b/public/assets/css/styles.css similarity index 100% rename from assets/css/styles.css rename to public/assets/css/styles.css diff --git a/assets/img/why-didnt-booker-immedietly-cover-up-his-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp b/public/assets/img/why-didnt-booker-immedietly-cover-up-his-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp similarity index 100% rename from assets/img/why-didnt-booker-immedietly-cover-up-his-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp rename to public/assets/img/why-didnt-booker-immedietly-cover-up-his-ad-tattoo-when-he-v0-yd4j8grc9tcc1.webp diff --git a/assets/js/bs-init.js b/public/assets/js/bs-init.js similarity index 100% rename from assets/js/bs-init.js rename to public/assets/js/bs-init.js diff --git a/assets/js/categoryDrop.js b/public/assets/js/categoryDrop.js similarity index 100% rename from assets/js/categoryDrop.js rename to public/assets/js/categoryDrop.js diff --git a/assets/js/checkboxBetter.js b/public/assets/js/checkboxBetter.js similarity index 100% rename from assets/js/checkboxBetter.js rename to public/assets/js/checkboxBetter.js diff --git a/assets/js/expandList.js b/public/assets/js/expandList.js similarity index 100% rename from assets/js/expandList.js rename to public/assets/js/expandList.js diff --git a/assets/js/toggleCategories.js b/public/assets/js/toggleCategories.js similarity index 100% rename from assets/js/toggleCategories.js rename to public/assets/js/toggleCategories.js diff --git a/index.html b/public/index.html similarity index 98% rename from index.html rename to public/index.html index b7766aa..a1cdf91 100644 --- a/index.html +++ b/public/index.html @@ -27,13 +27,13 @@ <div class="TopMain"> <div class="containerMain"> <div class="navMain"> - <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href="./"> + <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href=".."> <div class="navMainSecLogoImgWrapper"><img class="navMainSecLogoImg" src="Nostr Dev Logo Mark W.svg"><img class="navMainSecLogoImg navMainSecLogoImgAlt" src="Nostr Dev Logo Mark.svg"></div> <p class="navMainSecLogoText">CHEEMS MARKET</p> </a></div> <div class="navMainSec navMainSecMid"> <div class="navMainSecLinks"> - <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="./">Home</a></div> + <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="..">Home</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">About</a></div> @@ -266,7 +266,7 @@ </div> </div> <div class="BottomMainInsideTopInsideSec"> - <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> + <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/public">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/public#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> </div> <div class="BottomMainInsideTopInsideSec"> <div class="BottomMainInsideTopInsideSecRight"> @@ -294,4 +294,4 @@ <script src="assets/js/toggleCategories.js"></script> </body> -</html> \ No newline at end of file +</html> diff --git a/productPage.html b/public/productPage.html similarity index 91% rename from productPage.html rename to public/productPage.html index ed1bd51..de7f488 100644 --- a/productPage.html +++ b/public/productPage.html @@ -27,13 +27,13 @@ <div class="TopMain"> <div class="containerMain"> <div class="navMain"> - <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href="./"> + <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href=".."> <div class="navMainSecLogoImgWrapper"><img class="navMainSecLogoImg" src="Nostr Dev Logo Mark W.svg"><img class="navMainSecLogoImg navMainSecLogoImgAlt" src="Nostr Dev Logo Mark.svg"></div> <p class="navMainSecLogoText">CHEEMS MARKET</p> </a></div> <div class="navMainSec navMainSecMid"> <div class="navMainSecLinks"> - <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="./">Home</a></div> + <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="..">Home</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">About</a></div> @@ -66,7 +66,7 @@ </div> </div> <div class="BottomMainInsideTopInsideSec"> - <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> + <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/public">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/public#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> </div> <div class="BottomMainInsideTopInsideSec"> <div class="BottomMainInsideTopInsideSecRight"> @@ -94,4 +94,4 @@ <script src="assets/js/toggleCategories.js"></script> </body> -</html> \ No newline at end of file +</html> diff --git a/products.html b/public/products.html similarity index 97% rename from products.html rename to public/products.html index cd070b1..8e9e941 100644 --- a/products.html +++ b/public/products.html @@ -27,13 +27,13 @@ <div class="TopMain"> <div class="containerMain"> <div class="navMain"> - <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href="./"> + <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href=".."> <div class="navMainSecLogoImgWrapper"><img class="navMainSecLogoImg" src="Nostr Dev Logo Mark W.svg"><img class="navMainSecLogoImg navMainSecLogoImgAlt" src="Nostr Dev Logo Mark.svg"></div> <p class="navMainSecLogoText">CHEEMS MARKET</p> </a></div> <div class="navMainSec navMainSecMid"> <div class="navMainSecLinks"> - <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="./">Home</a></div> + <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="..">Home</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">About</a></div> @@ -205,7 +205,7 @@ </div> </div> <div class="BottomMainInsideTopInsideSec"> - <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> + <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/public">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/public#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> </div> <div class="BottomMainInsideTopInsideSec"> <div class="BottomMainInsideTopInsideSecRight"> @@ -233,4 +233,4 @@ <script src="assets/js/toggleCategories.js"></script> </body> -</html> \ No newline at end of file +</html> diff --git a/storePage.html b/public/storePage.html similarity index 98% rename from storePage.html rename to public/storePage.html index 2c80758..e8a997c 100644 --- a/storePage.html +++ b/public/storePage.html @@ -27,13 +27,13 @@ <div class="TopMain"> <div class="containerMain"> <div class="navMain"> - <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href="./"> + <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href=".."> <div class="navMainSecLogoImgWrapper"><img class="navMainSecLogoImg" src="Nostr Dev Logo Mark W.svg"><img class="navMainSecLogoImg navMainSecLogoImgAlt" src="Nostr Dev Logo Mark.svg"></div> <p class="navMainSecLogoText">CHEEMS MARKET</p> </a></div> <div class="navMainSec navMainSecMid"> <div class="navMainSecLinks"> - <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="./">Home</a></div> + <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="..">Home</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">About</a></div> @@ -245,7 +245,7 @@ </div> </div> <div class="BottomMainInsideTopInsideSec"> - <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> + <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/public">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/public#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> </div> <div class="BottomMainInsideTopInsideSec"> <div class="BottomMainInsideTopInsideSecRight"> @@ -273,4 +273,4 @@ <script src="assets/js/toggleCategories.js"></script> </body> -</html> \ No newline at end of file +</html> diff --git a/stores.html b/public/stores.html similarity index 97% rename from stores.html rename to public/stores.html index fa0a412..c1ddbca 100644 --- a/stores.html +++ b/public/stores.html @@ -27,13 +27,13 @@ <div class="TopMain"> <div class="containerMain"> <div class="navMain"> - <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href="./"> + <div class="navMainSec navMainSecFirst"><a class="navMainSecLogo" href=".."> <div class="navMainSecLogoImgWrapper"><img class="navMainSecLogoImg" src="Nostr Dev Logo Mark W.svg"><img class="navMainSecLogoImg navMainSecLogoImgAlt" src="Nostr Dev Logo Mark.svg"></div> <p class="navMainSecLogoText">CHEEMS MARKET</p> </a></div> <div class="navMainSec navMainSecMid"> <div class="navMainSecLinks"> - <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="./">Home</a></div> + <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="..">Home</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">text</a></div> <div class="navMainSecLinksLinkWrapper"><a class="navMainSecLinksLink" href="#">About</a></div> @@ -209,7 +209,7 @@ </div> </div> <div class="BottomMainInsideTopInsideSec"> - <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> + <div class="BottomMainInsideTopInsideSecMid"><a class="BottomMainInsideTopInsideSecMidLink" href="/public">Home</a><a class="BottomMainInsideTopInsideSecMidLink" href="/public#Team">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../portfolio.html">text</a><a class="BottomMainInsideTopInsideSecMidLink" href="../blog.html">About</a><a class="BottomMainInsideTopInsideSecMidLink" href="../career.html">text</a></div> </div> <div class="BottomMainInsideTopInsideSec"> <div class="BottomMainInsideTopInsideSecRight"> @@ -237,4 +237,4 @@ <script src="assets/js/toggleCategories.js"></script> </body> -</html> \ No newline at end of file +</html>