From d586c0165488a1372d400297983c15bb84901fea Mon Sep 17 00:00:00 2001 From: Brord van Wierst Date: Mon, 4 Dec 2023 02:42:14 +0100 Subject: [PATCH] dfixed --- .github/workflows/old.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/old.yml b/.github/workflows/old.yml index 39f4f4277..89ba99abc 100644 --- a/.github/workflows/old.yml +++ b/.github/workflows/old.yml @@ -38,14 +38,10 @@ jobs: deploy_staging: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - needs: build_staging steps: - - name: Checkout code - uses: actions/checkout@v2 - + - uses: actions/checkout@v2 - name: Set up AWS CLI uses: aws-actions/configure-aws-credentials@v2 with: @@ -53,7 +49,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ AWS_DEFAULT_REGION }} - build_staging: + build_production: runs-on: ubuntu-latest environment: production steps: @@ -82,12 +78,10 @@ jobs: paths: - ./build/web - deploy_staging: + deploy_production: environment: production runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - - needs: build_staging + needs: build_production steps: - name: Checkout code