Skip to content

Commit

Permalink
Publish website
Browse files Browse the repository at this point in the history
  • Loading branch information
korran committed Dec 11, 2023
1 parent 402141e commit 1cfd87a
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
echo "release_ref=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "Current ref $(git rev-parse HEAD) will receive tag ${TAG_BASE}${INDEX} after tests"
publish-website:
name: Publish https://caliptra-sw.github.io/
uses: ./.github/workflows/publish-website.yml

fpga-full-suite-etrng-log:
name: FPGA Suite (etrng, log)
needs: find-latest-release
Expand Down Expand Up @@ -144,6 +149,15 @@ jobs:
./ci-tools/release/build_release.sh ${{ needs.find-latest-release.outputs.new_release_tag }}
mv ./release/release.zip ./release/caliptra_${{ needs.find-latest-release.outputs.new_release_tag }}.zip
- name: 'Download all artifacts'
uses: actions/download-artifact@v3
with:
path: /tmp/artifacts

- name: Package all test artifacts for release
run: |
(cd /tmp/artifacts && zip -r - .) > ./release/test_artifacts_${{ needs.find-latest-release.outputs.new_release_tag }}.zip
- name: Tag repo with new release number
run: |
git config --global user.name "GitHub CI"
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish website

on:
workflow_call:
pull_request:

jobs:
build:
runs-on: ubuntu-22.04

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Generate HTML
run: |
cd ci-tools/test-matrix
mkdir /tmp/www
CPTRA_WWW_OUT=/tmp/www cargo run --release
- name: Generate GitHub Pages artifacts
uses: actions/upload-pages-artifact@v1
with:
path: /tmp/www

deploy:
runs-on: ubuntu-22.04

needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 1cfd87a

Please sign in to comment.