Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Docusaurus Build & Deploy Workflow Steps #6496

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 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,10 +9,11 @@ on:
branches:
- master
workflow_dispatch:
pull_request:

jobs:
deploy:
name: Deploy
run:
name: Run
runs-on: [self-hosted, plutus-shared]
permissions:
contents: write
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
Loading