From dedc5646792fe786877d12623142b2c0a1856bf7 Mon Sep 17 00:00:00 2001 From: beppe Date: Sun, 16 Jun 2024 16:06:44 +0200 Subject: [PATCH] workflow added --- .github/workflows/neocities.yml | 40 +++++++++++++++++++++++++++++ {days => public/days}/16-06-24.html | 0 home.html => public/home.html | 0 index.html => public/index.html | 0 main.css => public/main.css | 0 menu.html => public/menu.html | 0 readme.md | 1 + 7 files changed, 41 insertions(+) create mode 100644 .github/workflows/neocities.yml rename {days => public/days}/16-06-24.html (100%) rename home.html => public/home.html (100%) rename index.html => public/index.html (100%) rename main.css => public/main.css (100%) rename menu.html => public/menu.html (100%) create mode 100644 readme.md diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml new file mode 100644 index 0000000..7616e38 --- /dev/null +++ b/.github/workflows/neocities.yml @@ -0,0 +1,40 @@ +name: Deploy to neocities + +on: + push: + branches: + - master + +env: + FORCE_COLOR: 1 + node_version: lts/* + +concurrency: + group: deploy-to-neocities + cancel-in-progress: true + + + + + + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node_version }} + - run: npm i + - run: npm run build + - name: Deploy to neocities + uses: bcomnes/deploy-to-neocities@master + with: + api_token: ${{ secrets.NEOCITIES_API_TOKEN }} + cleanup: true + dist_dir: public + protected_files: 'dropbox/*' diff --git a/days/16-06-24.html b/public/days/16-06-24.html similarity index 100% rename from days/16-06-24.html rename to public/days/16-06-24.html diff --git a/home.html b/public/home.html similarity index 100% rename from home.html rename to public/home.html diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/main.css b/public/main.css similarity index 100% rename from main.css rename to public/main.css diff --git a/menu.html b/public/menu.html similarity index 100% rename from menu.html rename to public/menu.html diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..791c0aa --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +# Neocities code