Skip to content

Retrieve open repository issues #71

Retrieve open repository issues

Retrieve open repository issues #71

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: npm test
deploy-staging:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Fly CLI
run: |
curl -L https://fly.io/install.sh | sh
echo "$HOME/.fly/bin" >> $GITHUB_PATH
- name: Authenticate with Fly.io
run: echo "${{ secrets.FLY_API_TOKEN }}" | flyctl auth token
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy to Staging
run: fly deploy --config fly.staging.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}