mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Start to use Netlify for deployment
This commit is contained in:
parent
33eb987e91
commit
354b533e89
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: "Build demo"
|
name: "Build and deploy to Netlify"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -17,3 +17,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: public
|
folder: public
|
||||||
|
- name: Deploy to Netlify
|
||||||
|
uses: nwtgck/actions-netlify@v1.2
|
||||||
|
with:
|
||||||
|
publish-dir: ./public
|
||||||
|
production-branch: master
|
||||||
|
production-deploy: ${{ github.ref_name == 'master' }}
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
deploy-message: "Deploy from GitHub Actions"
|
||||||
|
enable-pull-request-comment: true
|
||||||
|
enable-commit-comment: true
|
||||||
|
enable-commit-status: true
|
||||||
|
overwrites-pull-request-comment: false
|
||||||
|
env:
|
||||||
|
NETLIFY_ACCESS_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }}
|
||||||
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
|
Loading…
Reference in New Issue
Block a user