This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (49 loc) · 1.74 KB
/
build-report.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Deploy
on:
push:
branches:
- main
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.
# keep the conformance json files
clean-exclude: |
spec-conformance*.json