Skip to content

Commit

Permalink
Revert "Fixes to metatheory-site.yml workflow (#6228)"
Browse files Browse the repository at this point in the history
This reverts commit 1091562.
  • Loading branch information
zeme-wana authored Jun 20, 2024
1 parent 1091562 commit 83e75c0
Showing 1 changed file with 12 additions and 12 deletions.
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/metatheory/$version
# https://intersectmbo.github.io/plutus/docs/metatheory/$version
# Where $version should be a release version tag.
# Optionally the $version branch can also be deployed to:
# https://intersectmbo.github.io/plutus/metatheory/latest
# https://intersectmbo.github.io/plutus/docs/metatheory/latest

name: "🔮 Metatheory Site"
name: ci

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/metatheory/$version
https://intersectmbo.github.io/plutus/docs/metatheory/$version
required: true
type: string

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

jobs:
publish:
name: Publish
deplopy-adga-metatheory-site:
name: "📚 Deplopy Adga Metatheory Site"
runs-on: [self-hosted, plutus-shared]
permissions:
contents: write
environment:
name: github-pages
steps:
- name: Checkout
uses: actions/checkout@latest
uses: actions/checkout@main
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@latest
uses: JamesIves/github-pages-deploy-action@main
with:
folder: _site
target-folder: metatheory/${{ inputs.version }}
target-folder: docs/metatheory/${{ inputs.version }}
single-commit: true

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

0 comments on commit 83e75c0

Please sign in to comment.