From 4781fcf02edbe4e4e91d889053f981d069455f0c Mon Sep 17 00:00:00 2001 From: Stixx 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 @@