feat(workflow): add artifacts
This commit is contained in:
parent
80e6a12c9b
commit
408b2195be
17
.github/workflows/prod.yml
vendored
17
.github/workflows/prod.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
@ -55,6 +55,12 @@ jobs:
|
|||||||
git commit -m "release: frontend"
|
git commit -m "release: frontend"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
- name: Upload Frontend Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: frontend-artifacts
|
||||||
|
path: ./frontend/dist
|
||||||
|
|
||||||
|
|
||||||
- name: Build and test code
|
- name: Build and test code
|
||||||
run: |
|
run: |
|
||||||
@ -65,7 +71,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
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
|
- uses: shuttle-hq/deploy-action@main
|
||||||
with:
|
with:
|
||||||
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
|
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user