Skip to content
Merged
Changes from 1 commit
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
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
pull_request:
push:
branches:
- master

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point the deploy workflow at main

In this checkout the integration branch is main (git branch --all shows no master branch), but this trigger only runs for pushes to master; the deploy job also repeats refs/heads/master. If merges land on main, the new push validation and edge deploy path will not run at all for this repo, so production deploys remain silently disabled.

Useful? React with 👍 / 👎.


jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm run install:all

- name: Build static assets
run: npm run build

deploy-edge:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: validate
runs-on: ubuntu-latest
environment: production

steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm run install:all

- name: Build static assets
run: npm run build

- name: Upload static assets to edge
uses: shipstuff/actions/digital-ocean-upload@main
with:
ssh-private-key: ${{ secrets.EDGE_KEY }}
edge-user: catalystpro
source-path: client/dist
delete: "true"