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

Final changes to metatheory-site.yml workflow #6229

Merged
merged 8 commits into from
Jun 21, 2024
Merged
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
15 changes: 9 additions & 6 deletions .github/workflows/metatheory-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ 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/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/metatheory/latest.
You want to leave this to true unless you are deploying old versions.
type: boolean
required: true
Expand All @@ -36,23 +36,26 @@ jobs:
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
run: |
nix build --accept-flake-config .#plutus-metatheory-site
mkdir _site
cp -RL result/* _site

- name: Deploy Site
uses: JamesIves/github-pages-deploy-action@latest
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
folder: _site
target-folder: 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@v4.6.1
with:
folder: _site
target-folder: metatheory/latest
Expand Down
5 changes: 5 additions & 0 deletions RELEASE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Another example is if a security audit is done on `rc1`, and the changes in `rc2
- This will automatically open a PR in `plutus-tx-template` with auto-merge enabled
- Ensure that CI is green and the PR gets merged

10. Publish the updated Metatheory site
- Navigate to the https://github.com/IntersectMBO/plutus/actions/workflows/metatheory-site.yml[Metatheory Site Action] on GitHub
- Click the `Run workflow` button on the right, enter the new release version and confirm
- Ensure that the action completes successfully

=== Patch Releases

Suppose we are releasing version `x.y.z.w`.
Expand Down