-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for publishing Agda Metatheory site (#6223)
* Add workflow for publishing AGDA metatheory site * wip * wip
- Loading branch information
1 parent
8248356
commit 1bca0b6
Showing
4 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# This workflow publishes the Agda metatheory site to: | ||
# 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/docs/metatheory/latest | ||
|
||
name: ci | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
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 | ||
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 | ||
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" | ||
runs-on: [self-hosted, plutus-shared] | ||
permissions: | ||
contents: write | ||
environment: | ||
name: github-pages | ||
steps: | ||
- name: Checkout | ||
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@main | ||
with: | ||
folder: _site | ||
target-folder: docs/metatheory/${{ inputs.version }} | ||
single-commit: true | ||
|
||
- name: Deploy Latest | ||
if: ${{ inputs.latest == true }} | ||
uses: JamesIves/github-pages-deploy-action@main | ||
with: | ||
folder: _site | ||
target-folder: docs/metatheory/latest | ||
single-commit: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters