Add a protected_files input that accepts a minimatch glob

This commit is contained in:
Bret Comnes
2021-01-17 13:55:02 -07:00
parent 15d3299d41
commit cadbbff700
9 changed files with 1290 additions and 46 deletions

View File

@@ -17,11 +17,9 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 12
- name: Install deps and build
run: |
npm i
npm run build
node-version: 15
- run: npm i
- run: npm run build
# When the dist_dir is ready, deploy it to neocities
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@master # dont use master in production
@@ -29,3 +27,4 @@ jobs:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: public
protected_files: 'dropbox/*'

View File

@@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [12]
node: [15]
steps:
- uses: actions/checkout@v2
@@ -17,10 +17,8 @@ jobs:
uses: actions/setup-node@v2.1.4
with:
node-version: ${{ matrix.node }}
- name: npm install && npm test
run: |
npm i
npm test
- run: npm i
- run: npm test
automerge:
needs: test