Skip to content

Deploy to GitHub Pages #7

Deploy to GitHub Pages

Deploy to GitHub Pages #7

Workflow file for this run

name: Deploy to GitHub Pages
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: bun install
- name: Build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
PUBLIC_SPOTIFY_CLIENT_ID: ${{ secrets.PUBLIC_SPOTIFY_CLIENT_ID }}
PUBLIC_REDIRECT_TARGET: ${{ secrets.PUBLIC_REDIRECT_TARGET }}
run: bun run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v4
with:
path: build/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4