mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 00:46:29 +00:00
checking in
This commit is contained in:
26
.github/workflows/example.yml
vendored
26
.github/workflows/example.yml
vendored
@@ -3,27 +3,29 @@ name: Example usage
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
example:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
os: [ubuntu-latest]
|
||||
node: [12]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- name: Use Node.js ${{ matrix.node }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: sudo apt-get install xvfb
|
||||
- name: npm install, build, and test
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: npm install and build
|
||||
run: |
|
||||
npm i
|
||||
xvfb-run --auto-servernum node example.js
|
||||
npm run build
|
||||
env:
|
||||
CI: true
|
||||
- name: Cleanup xvfb pidx
|
||||
uses: bcomnes/cleanup-xvfb@v1
|
||||
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@master
|
||||
with:
|
||||
api-token: ${{ secrets.NeocitiesToken }}
|
||||
distDir: public
|
||||
cleanup: true
|
||||
|
||||
Reference in New Issue
Block a user