Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Simple workflow for deploying static content to GitHub Pages
# Adapted from vite.dev
name: Deploy static content to Pages
name: deploy-prod
run-name: Deploy to Production

on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
tags:
- "v*"

env:
AWS_REGION: ${{ vars.AWS_DEFAULT_REGION }}
Expand All @@ -17,30 +16,7 @@ permissions:
id-token: write

jobs:
deploy-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v2

- name: Install
run: bun install

- name: Build with Vite
run: bun run build --base=/cellpack-client

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./dist
clean-exclude: pr-preview/
branch: gh-pages

deploy-prod:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Simple workflow for deploying static content to GitHub Pages
# Adapted from vite.dev
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ['main']

permissions:
contents: write
pages: write
id-token: write

jobs:
deploy-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v2

- name: Install
run: bun install

- name: Build with Vite
run: bun run build --base=/cellpack-client

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./dist
clean-exclude: pr-preview/
branch: gh-pages
Loading