Skip to content

Deploy to GitHub Pages #69

Deploy to GitHub Pages

Deploy to GitHub Pages #69

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main, master ]
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Generate configuration file
run: |
bunx kitty-parse -o x.json
bun run vod.ts vod.json xvod.json
bun run t4.ts t4.json
bun run pages.ts index.html
- name: Prepare deployment directory
run: |
mkdir -p deploy
cp x.json vod.json xvod.json t4.json index.html deploy/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: deploy
publish_branch: gh-pages
force_orphan: true
keep_files: false
commit_message: 'Deploy: Update configuration file'
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'