Build and Deploy #673
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: Build and Deploy | |
on: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout web5-spec repo | |
uses: actions/checkout@v3 | |
with: | |
repository: TBD54566975/web5-spec | |
path: web5-spec | |
- name: Checkout tbdex repo | |
uses: actions/checkout@v3 | |
with: | |
repository: TBD54566975/tbdex | |
path: tbdex | |
- name: Copy web5-spec test-vectors | |
run: cp -r web5-spec/test-vectors ./test-vectors | |
- name: Copy tbdex hosted test-vectors | |
run: cp -r tbdex/hosted/test-vectors ./tbdex-test-vectors | |
- uses: actions/setup-go@v4 | |
- name: build html | |
run: | | |
cd reports | |
sudo apt-get install -yyq fonts-arkpandora # needed to generate badges | |
go run ./cmd/build-html | |
cp -r ./static/* _site | |
mv _site ../ | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CICD_ROBOT_GITHUB_APP_NAME: ${{ secrets.CICD_ROBOT_GITHUB_APP_NAME }} | |
CICD_ROBOT_GITHUB_APP_PRIVATE_KEY: ${{ secrets.CICD_ROBOT_GITHUB_APP_PRIVATE_KEY }} | |
CICD_ROBOT_GITHUB_APP_ID: ${{ secrets.CICD_ROBOT_GITHUB_APP_ID }} | |
CICD_ROBOT_GITHUB_APP_INSTALLATION_ID: ${{ secrets.CICD_ROBOT_GITHUB_APP_INSTALLATION_ID }} | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: _site # The folder the action should deploy. |