Merge pull request #8 from itsscb/feature
feat(workflow): add artifacts
This commit is contained in:
commit
21cbb70594
17
.github/workflows/prod.yml
vendored
17
.github/workflows/prod.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache dependencies
|
||||
@ -59,6 +59,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: |
|
||||
@ -69,7 +75,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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user