Skip to content

Commit

Permalink
Separate Docusaurus Build & Deploy Workflow Steps
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana committed Sep 18, 2024
1 parent 2d3b78e commit 93cb5e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docusaurus-site.yml
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"
Expand All @@ -8,6 +9,7 @@ on:
branches:
- master
workflow_dispatch:
pull_request:

jobs:
deploy:
Expand All @@ -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

0 comments on commit 93cb5e0

Please sign in to comment.