-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate Docusaurus Build & Deploy Workflow Steps
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# This workflow builds and publishes the Docusaurus site to: | ||
# This workflow builds the Docusaurus site on pull_request. | ||
# It also publishes the site on push to master to: | ||
# https://plutus.cardano.intersectmbo.org/docs | ||
|
||
name: "🦕 Docusaurus Site" | ||
|
@@ -8,6 +9,7 @@ on: | |
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -26,8 +28,9 @@ jobs: | |
run: nix develop --no-warn-dirty --accept-flake-config --command bash -c 'yarn && yarn build' | ||
|
||
- name: Deploy Site | ||
if: github.event_name == 'push' | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: doc/docusaurus/build | ||
target-folder: docs | ||
single-commit: true | ||
single-commit: true |