From b949b20c39aaef4fc1190ecec29cbd3f2d889b46 Mon Sep 17 00:00:00 2001 From: Vi Nguyen Date: Fri, 22 Dec 2023 13:16:22 +0700 Subject: [PATCH] infra: use upload/download artifact --- .github/workflows/dev.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index c09c367..72b1e5e 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -33,6 +33,13 @@ jobs: run: | yarn yarn nx run-many -t build --all + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist + retention-days: 7 + iam_deploy: needs: build_asset name: Deploy IAM Task execution Role Development @@ -44,6 +51,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Download dist + uses: actions/download-artifact@v3 + with: + name: dist - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 with: @@ -75,6 +86,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Download dist + uses: actions/download-artifact@v3 + with: + name: dist - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 with: