Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
feat/fix: Fix failing GitHub Actions run
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 15, 2024
1 parent da89ae2 commit d794bfa
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: Deploy to staging
uses: some-deployment-action@v1
with:
environment: staging
api-key: ${{ secrets.STAGING_API_KEY }}
region: us-west

- name: Deploy to production
uses: some-deployment-action@v1
with:
environment: production
api-key: ${{ secrets.PRODUCTION_API_KEY }}
region: us-east

0 comments on commit d794bfa

Please sign in to comment.