Skip to content

Commit

Permalink
💚 Fix CI stage
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Sep 16, 2024
1 parent 1b5adfb commit 42f4366
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ jobs:
- 'packages/**'
- 'example/**'
- name: "🔧 Setup environment"
if: steps.changes.outputs.deployRequired == 'true'
shell: bash
run: |
if [[ "${{ inputs.ref }}" == "refs/heads/main" ]]; then
echo "STAGE=prod" >> $GITHUB_ENV
elif [[ "${{ inputs.ref }}" == "refs/heads/dev" ]]; then
echo "STAGE=dev" >> $GITHUB_ENV
fi
- name: Set up QEMU
if: steps.changes.outputs.deployRequired == 'true'
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -81,8 +71,19 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: "🔧 Setup environment"
if: steps.changes.outputs.deployRequired == 'true'
shell: bash
run: |
if [[ "${{ inputs.ref }}" == "refs/heads/main" ]]; then
echo "STAGE=prod" >> $GITHUB_ENV
elif [[ "${{ inputs.ref }}" == "refs/heads/dev" ]]; then
echo "STAGE=dev" >> $GITHUB_ENV
fi
- name: "🚀 SST Deploy"
if: steps.changes.outputs.deployRequired == 'true'
run: |
STAGE=${STAGE_OVERRIDE:-$STAGE}
echo "Deploying with stage: $STAGE"
bun sst deploy --stage $STAGE
1 change: 1 addition & 0 deletions packages/backend-elysia/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@frak-labs/backend-elysia",
"description": "Elysia Backend",
"version": "0.0.1",
"scripts": {
"lint": "biome lint .",
Expand Down

0 comments on commit 42f4366

Please sign in to comment.