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

Fixes to metatheory-site.yml workflow #6228

Merged
merged 4 commits into from
Jun 20, 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
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This workflow publishes the Agda metatheory site to:
# https://intersectmbo.github.io/plutus/docs/metatheory/$version
# https://intersectmbo.github.io/plutus/metatheory/$version
# Where $version should be a release version tag.
# Optionally the $version branch can also be deployed to:
# https://intersectmbo.github.io/plutus/docs/metatheory/latest
# https://intersectmbo.github.io/plutus/metatheory/latest

name: ci
name: "🔮 Metatheory Site"

on:
workflow_dispatch:
Expand All @@ -13,48 +13,48 @@ on:
description: |
The release version tag. For example if $version == "1.29.0.0" then the
current contents of the branch tagged "1.29.0.0" will be deployed to:
https://intersectmbo.github.io/plutus/docs/metatheory/$version
https://intersectmbo.github.io/plutus/metatheory/$version
required: true
type: string

latest:
description: |
If true, then the $version branch will also be deployed to:
https://intersectmbo.github.io/plutus/docs/metatheory/latest
https://intersectmbo.github.io/plutus/metatheory/latest
You want to leave this to true unless you are deploying old versions.
type: boolean
required: true
default: true

jobs:
deplopy-adga-metatheory-site:
name: "📚 Deplopy Adga Metatheory Site"
publish:
name: Publish
runs-on: [self-hosted, plutus-shared]
permissions:
contents: write
environment:
name: github-pages
steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@latest
with:
ref: ${{ inputs.version }}

- name: Build Site
run: nix build .#plutus-metatheory-site --out-link _site

- name: Deploy Site
uses: JamesIves/github-pages-deploy-action@main
uses: JamesIves/github-pages-deploy-action@latest
with:
folder: _site
target-folder: docs/metatheory/${{ inputs.version }}
target-folder: metatheory/${{ inputs.version }}
single-commit: true

- name: Deploy Latest
if: ${{ inputs.latest == true }}
uses: JamesIves/github-pages-deploy-action@main
uses: JamesIves/github-pages-deploy-action@latest
with:
folder: _site
target-folder: docs/metatheory/latest
target-folder: metatheory/latest
single-commit: true