Skip to content

Merge pull request #188 from gehuhaldwani/upload-1780284481095 #357

Merge pull request #188 from gehuhaldwani/upload-1780284481095

Merge pull request #188 from gehuhaldwani/upload-1780284481095 #357

Workflow file for this run

name: Deploy Site
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch to root
uses: actions/checkout@v6
with:
ref: gh-pages
- name: Checkout main branch to pyqs
uses: actions/checkout@v6
with:
ref: main
clean: false
path: pyqs
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Set up bun
uses: oven-sh/setup-bun@v2
- name: Cache bun dependencies
uses: actions/cache@v5
with:
path: |
~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
- name: Install dependencies
run: bun install
- name: Build Cache
uses: actions/cache@v5
with:
path: "./cache"
key: ${{ runner.os }}-build-cache
- name: Build
run: bun run --bun build
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
name: github-pages
path: "./dist"
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
- name: Clear build artifacts
uses: geekyeggo/delete-artifact@v6
with:
name: github-pages