Skip to content

Commit

Permalink
chore(ci): fix the upload to S3 condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pkorchak committed May 22, 2023
1 parent 23b208e commit cf1860d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ on:
branches: [ main ]

jobs:
init:
runs-on: ubuntu-latest
outputs:
env: ${{ steps.setEnv.outputs.env }}
steps:
- name: Set env variable
id: setEnv
run: |
if [[ "${{github.ref_name}}" == "main" ]]; then
echo "::set-output name=env::production"
else
echo "::set-output name=env::staging"
fi
build:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -57,3 +43,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: ./dist/form-builder-demo/

0 comments on commit cf1860d

Please sign in to comment.