test(api): add test for workspace (#141) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- develop | |
paths: ['apps/api/**', '.github/workflows/stage-api.yml'] | |
jobs: | |
deploy-api-stage: | |
runs-on: ubuntu-latest | |
name: Deploy to stage | |
if: github.ref == 'refs/heads/develop' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install fly CLI | |
run: | | |
curl -L https://fly.io/install.sh | sh | |
- name: Deploy to stage | |
run: ~/.fly/bin/fly deploy --config fly.api.toml --dockerfile ./apps/api/Dockerfile --app keyshade-api-stage --access-token ${{ secrets.FLY_ACCESS_TOKEN }} |