mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 08:51:54 +00:00
initial attempt
This commit is contained in:
31
example.yml
Normal file
31
example.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Example usage
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
example:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: [12]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: npm install and build
|
||||
run: |
|
||||
npm i
|
||||
npm run build
|
||||
env:
|
||||
CI: true
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@master
|
||||
with:
|
||||
api-token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
distDir: public
|
||||
cleanup: true
|
||||
Reference in New Issue
Block a user