workflow added
This commit is contained in:
40
.github/workflows/neocities.yml
vendored
Normal file
40
.github/workflows/neocities.yml
vendored
Normal 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/*'
|
Reference in New Issue
Block a user