From 47e7547fc1d5396fb471d4c16e04c48656faa98b Mon Sep 17 00:00:00 2001 From: Taylor Halfyard Date: Wed, 6 Dec 2023 16:49:17 +0000 Subject: [PATCH] Added in upload and download for artifact --- .github/workflows/deploy.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 92283c798..43f8e7f87 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -63,7 +63,15 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} run: npm run build -- --configuration='deploy' --output-path='dist/' -# deploy_infra: + - uses: actions/upload-artifact@v3 + with: + name: VTM-App-build-output + path: dist/ + + + + + # deploy_infra: # needs: [build] # name: "Deploy VTM Terraform" # runs-on: ubuntu-latest @@ -105,7 +113,13 @@ jobs: secret-ids: cvs-app-vtm/gha parse-json-secrets: true + - uses: actions/download-artifact@v3 + with: + name: VTM-App-build-output + path: dist/ + + - name: Deploy App to S3 - working-directory: cvs-app-vtm/dist/ + working-directory: dist/ run: aws s3 sync . s3://vtm${{ inputs.bucket }}.${{ env.CVS_APP_VTM_GHA_DOMAIN }}