mirror of
https://github.com/jakejarvis/netlify-plugin-cache.git
synced 2025-04-26 07:35:22 -04:00
simple GitHub Action to build example site with plugin (locally from source)
This commit is contained in:
parent
59541f2041
commit
9f339401ad
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/
|
||||
|
@ -1,5 +1,10 @@
|
||||
# only used in this example to build from parent directory
|
||||
[[plugins]]
|
||||
package = "netlify-plugin-cache"
|
||||
package = "@netlify/plugin-local-install-core"
|
||||
|
||||
# package would normally equal `netlify-plugin-cache`
|
||||
[[plugins]]
|
||||
package = "../"
|
||||
[plugins.inputs]
|
||||
paths = ["cached"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user