Skip to content

Commit 9f33940

Browse files
committed
simple GitHub Action to build example site with plugin (locally from source)
1 parent 59541f2 commit 9f33940

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: '12'
13+
- run: npm install -g netlify-cli
14+
- run: netlify build
15+
env:
16+
NETLIFY_SITE_ID: '8ceb6251-650b-481a-976c-fec1a4f95800'
17+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.github/
12
example/

example/netlify.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# only used in this example to build from parent directory
12
[[plugins]]
2-
package = "netlify-plugin-cache"
3+
package = "@netlify/plugin-local-install-core"
4+
5+
# package would normally equal `netlify-plugin-cache`
6+
[[plugins]]
7+
package = "../"
38
[plugins.inputs]
49
paths = ["cached"]
510

0 commit comments

Comments
 (0)