Skip to content

Commit

Permalink
ci: added github action for deploying convex functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shironex committed Oct 15, 2024
1 parent 5dc05a9 commit d3099ea
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: setup-action
description: 'Setup Node.js ⚙️ - Install dependencies 🔧'

runs:
using: 'composite'
steps:
- name: Install Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies 🔧
run: npm install
shell: bash
21 changes: 21 additions & 0 deletions .github/workflows/convex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy Convex

on:
push:
branches:
- main

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

- name: Setup Node.js ⚙️ - Install dependencies 🔧
uses: ./.github/actions/setup

- name: Deploy Convex 🚀
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: npx convex deploy

0 comments on commit d3099ea

Please sign in to comment.