From 408b2195be5d16a0d08e8954f29625ab74609a41 Mon Sep 17 00:00:00 2001 From: itsscb Date: Wed, 28 Aug 2024 10:54:03 +0200 Subject: [PATCH] feat(workflow): add artifacts --- .github/workflows/prod.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index bdbbdf8..0525fac 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v4 - name: Cache dependencies @@ -55,6 +55,12 @@ jobs: git commit -m "release: frontend" git push + - name: Upload Frontend Artifacts + uses: actions/upload-artifact@v4 + with: + name: frontend-artifacts + path: ./frontend/dist + - name: Build and test code run: | @@ -65,7 +71,14 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v4 + - name: Download Frontend Artifacts + uses: actions/download-artifact@v4 + with: + name: frontend-artifacts + + - name: Checkout + uses: actions/checkout@v4 + - uses: shuttle-hq/deploy-action@main with: deploy-key: ${{ secrets.SHUTTLE_API_KEY }}