Skip to content

Deploy RISC-V Software Ecosystem Dashboard #221

Deploy RISC-V Software Ecosystem Dashboard

Deploy RISC-V Software Ecosystem Dashboard #221

Workflow file for this run

name: Deploy RISC-V Software Ecosystem Dashboard
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 3 * * *" # every day at 03:00 UTC
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Validate data.yaml against schema
run: npm run validate:data
- name: Build site
env:
VITE_BUILD_TIME: ${{ github.run_started_at }}
run: npm run build
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
uses: actions/deploy-pages@v4