11# .github/workflows/netlify.yml
2- name : Netlify Deploy Preview
2+ name : Netlify Preview
33on :
4- push :
4+ pull_request :
5+ types : [opened, synchronize]
56 paths-ignore :
67 - ' **.md'
78 - ' examples'
8- - ' !examples/monaco-graphql-webpack'
9- pull_request :
10- types : [opened, synchronize]
9+ - ' !examples/monaco-graphql-webpack/**'
1110
1211jobs :
13- build :
14- name : " Build & Deploy "
12+ graphiql-preview :
13+ name : " GraphiQL "
1514 runs-on : ubuntu-18.04
1615 steps :
1716 - name : Checkout
@@ -35,13 +34,45 @@ jobs:
3534 publish-dir : ' ./packages/graphiql/'
3635 production-branch : main
3736 github-token : ${{ secrets.GITHUB_TOKEN }}
38- deploy-message : " Deploy Preview: ${{ github.event.pull_request.title }}. Use `/dev` for react debugging "
37+ deploy-message : " GraphiQL 1 Preview "
3938 enable-pull-request-comment : true
4039 enable-commit-comment : true
4140 overwrites-pull-request-comment : true
4241 functions-dir : functions
43- github-deployment-environment : " Deploy Preview "
42+ github-deployment-environment : " graphiql-1 "
4443 env :
4544 NETLIFY_AUTH_TOKEN : ${{ secrets.AUTH_TOKEN }}
4645 NETLIFY_SITE_ID : ${{ secrets.SITE_ID }}
4746 timeout-minutes : 1
47+ monaco-preview :
48+ name : " Monaco GraphQL"
49+ runs-on : ubuntu-18.04
50+ steps :
51+ - name : Checkout
52+ uses : actions/checkout@v2
53+
54+ - name : Yarn Install
55+ uses : bahmutov/npm-install@v1
56+ # ( Build to ./dist or other directory... )
57+ - name : Build
58+ run : yarn build
59+
60+ - name : Build Monaco Example
61+ run : yarn workspace example-monaco-graphql-webpack run build
62+
63+ - name : Deploy Monaco GraphQL Example to Netlify
64+ 65+ with :
66+ publish-dir : ' ./examples/monaco-graphql-webpack/bundle'
67+ production-branch : main
68+ github-token : ${{ secrets.GITHUB_TOKEN }}
69+ deploy-message : " Monaco GraphQL Preview"
70+ enable-pull-request-comment : true
71+ enable-commit-comment : true
72+ overwrites-pull-request-comment : true
73+ functions-dir : functions
74+ github-deployment-environment : " monaco-graphql"
75+ env :
76+ NETLIFY_AUTH_TOKEN : ${{ secrets.AUTH_TOKEN }}
77+ NETLIFY_SITE_ID : 46a6b3c8-992f-4623-9a76-f1bd5d40505c
78+ timeout-minutes : 1
0 commit comments