Add option for query id routing (#31)

This commit is contained in:
Ahmed Waleed
2025-06-29 12:47:24 +03:00
committed by GitHub
parent 7dc3edb5fd
commit 335c418c54
5 changed files with 64 additions and 8 deletions

45
.github/workflows/pages.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
name: Deploy to GitHub Pages
on:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
env:
#VITE_BYTEBIN_URL: "https://your-bytebin.example.com/"
VITE_USE_QUERY_ROUTING: "true" # required for github pages
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4