fix: update diagrams #266
Workflow file for this run
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: Validate Pull Request | |
# This workflow verifies that the site will build for pull requests. | |
on: [pull_request] | |
jobs: | |
validate-pull-request: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Fixup Git URLs, see: | |
# https://stackoverflow.com/questions/70663523/the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported | |
- name: Fix up git URLs | |
run: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig | |
# Check typescript compiles properly. | |
- name: Check TypeScript | |
run: make typescript-check | |
# Run the build - this will fail if there are broken links etc. | |
- name: Build | |
run: make build | |
# Store the artifacts in case we want to validate samples etc. | |
- name: Store Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: artifacts | |
# See: | |
# https://github.com/marketplace/actions/deploy-pr-preview | |
deploy-preview: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install and Build | |
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed | |
run: npm install --legacy-peer-deps && npm run build | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./build/ |