Skip to content

Commit

Permalink
feat: Add API CD (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls authored Mar 21, 2024
1 parent b371ac6 commit ac08981
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy API

on:
workflow_dispatch:

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

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install Netlify
run: npm install [email protected] -g

- name: Install npm dependencies
run: yarn --immutable

- name: Deploy to Netlify
id: netlify_deploy
run: |
netlify deploy \
--dir packages/functions \
--filter=functions \
--prod \
--functions=. \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }}

0 comments on commit ac08981

Please sign in to comment.