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 Metatheory Site Build and Deploy Steps #6520

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/docusaurus-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: nix develop --no-warn-dirty --accept-flake-config --command bash -c 'yarn && yarn build'

- name: Deploy Site
if: github.event_name == 'push'
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
folder: doc/docusaurus/build
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/metatheory-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
push:
branches:
- master
pull_request:

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -39,8 +40,8 @@ on:
default: true

jobs:
deploy:
name: Deploy
run:
name: Run
runs-on: [self-hosted, plutus-shared]
permissions:
contents: write
Expand All @@ -59,14 +60,15 @@ jobs:
cp -RL result/* _metatheory

- name: Deploy Site
if: ${{ github.event_name == 'push' }}
uses: JamesIves/[email protected]
with:
folder: _metatheory
target-folder: metatheory/${{ inputs.destination || github.ref_name }}
single-commit: true

- name: Deploy Site (latest)
if: ${{ inputs.latest == true }}
if: ${{ github.event_name == 'push' && inputs.latest == true }}
uses: JamesIves/[email protected]
with:
folder: _metatheory
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-broken-links.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TARGETS=(
.github/{ISSUE_TEMPLATE/*,*.md,*.yml}
**/{LICENSE,NOTICE,README.md,TRIAGE.md}
CODE_OF_CONDUCT.md
*.md
*.adoc
)

Expand Down
Loading