mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 01:57:54 +00:00
Build and deploy to Netlify
This should make it easier to separate it between subdomains.
This commit is contained in:
parent
c24cceab23
commit
8c467606a0
25
.github/workflows/generate-site.yaml
vendored
25
.github/workflows/generate-site.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Generate site to GitHub pages
|
name: Build and deploy to Netlify
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -13,18 +13,23 @@ jobs:
|
|||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Setup for static site generation
|
- name: Setup for static site generation
|
||||||
run: |
|
run: |
|
||||||
nix-shell -p nodejs
|
nix develop
|
||||||
mv notebook/ site/public/
|
mv notebook/ site/public/
|
||||||
cd site
|
cd site
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to Netlify
|
||||||
if: success()
|
uses: nwtgck/actions-netlify@v1.2
|
||||||
uses: crazy-max/ghaction-github-pages@v2
|
|
||||||
with:
|
with:
|
||||||
jekyll: false
|
publish-dir: ./site/out
|
||||||
target_branch: gh-pages
|
production-branch: master
|
||||||
build_dir: site/out
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PAGES_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
|
Loading…
Reference in New Issue
Block a user