ci: add harness build check (#141) #38
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
name: Deploy x509-limbo site | |
on: | |
push: | |
branches: | |
- main | |
- site-staging | |
workflow_dispatch: | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
run-all-harnesses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ">=3.12" | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ">=1.20.5" | |
- name: run harnesses | |
run: make test | |
- name: upload results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: results | |
path: results | |
deploy: | |
needs: ["run-all-harnesses"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ">=3.12" | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: retrieve results | |
uses: actions/download-artifact@v4 | |
with: | |
name: results | |
path: results | |
- name: build site | |
run: make site | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: site_html | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |