Skip to content

feat: static registry with GitHub Pages + version tracking (#11) #1

feat: static registry with GitHub Pages + version tracking (#11)

feat: static registry with GitHub Pages + version tracking (#11) #1

Workflow file for this run

name: Build & Deploy Registry
on:
push:
branches: [main]
repository_dispatch:
types: [plugin-release]
schedule:
- cron: '0 6 * * *'
workflow_dispatch: {}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y jq
- name: Build static index
run: bash scripts/build-index.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build version data
run: bash scripts/build-versions.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: v1
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4