Implement RFC 30: Component metadata.
Co-authored-by: Catherine <whitequark@whitequark.org>
This commit is contained in:
parent
1d2b9c309e
commit
496432edaa
12 changed files with 1024 additions and 9 deletions
32
.github/workflows/main.yaml
vendored
32
.github/workflows/main.yaml
vendored
|
|
@ -126,6 +126,14 @@ jobs:
|
|||
with:
|
||||
name: docs
|
||||
path: docs/_build
|
||||
- name: Extract schemas
|
||||
run: |
|
||||
pdm run extract-schemas
|
||||
- name: Upload schema archive
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: schema
|
||||
path: schema
|
||||
|
||||
check-links:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -154,6 +162,30 @@ jobs:
|
|||
steps:
|
||||
- run: ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}
|
||||
|
||||
publish-schemas:
|
||||
needs: document
|
||||
if: ${{ github.repository == 'amaranth-lang/amaranth' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out source code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Download schema archive
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: schema
|
||||
path: schema/
|
||||
- name: Publish development schemas
|
||||
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v4
|
||||
with:
|
||||
repository-name: amaranth-lang/amaranth-lang.github.io
|
||||
ssh-key: ${{ secrets.PAGES_DEPLOY_KEY }}
|
||||
branch: main
|
||||
folder: schema/
|
||||
target-folder: schema/amaranth/
|
||||
|
||||
publish-docs:
|
||||
needs: document
|
||||
if: ${{ github.repository == 'amaranth-lang/amaranth' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue