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