You've already forked netlify-plugin-cache
mirror of
https://github.com/jakejarvis/netlify-plugin-cache.git
synced 2025-10-27 14:15:50 -04:00
simple GitHub Action to build example site with plugin (locally from source)
This commit is contained in:
17
.github/workflows/ci.yml
vendored
Normal file
17
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- run: npm install -g netlify-cli
|
||||||
|
- run: netlify build
|
||||||
|
env:
|
||||||
|
NETLIFY_SITE_ID: '8ceb6251-650b-481a-976c-fec1a4f95800'
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
@@ -1 +1,2 @@
|
|||||||
|
.github/
|
||||||
example/
|
example/
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
|
# only used in this example to build from parent directory
|
||||||
[[plugins]]
|
[[plugins]]
|
||||||
package = "netlify-plugin-cache"
|
package = "@netlify/plugin-local-install-core"
|
||||||
|
|
||||||
|
# package would normally equal `netlify-plugin-cache`
|
||||||
|
[[plugins]]
|
||||||
|
package = "../"
|
||||||
[plugins.inputs]
|
[plugins.inputs]
|
||||||
paths = ["cached"]
|
paths = ["cached"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user