workflow added

This commit is contained in:
2024-06-16 16:06:44 +02:00
parent b766b9f775
commit dedc564679
7 changed files with 41 additions and 0 deletions

40
.github/workflows/neocities.yml vendored Normal file
View File

@@ -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/*'