Skip to content

Commit 370bbe4

Browse files
committed
move reusable workflow into its own job in calling workflow
1 parent 8628b31 commit 370bbe4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ jobs:
7070
tags: |
7171
${{ secrets.DOCKERHUB_USERNAME }}/sourcedepth.com:latest
7272
annotations: ${{ steps.meta.outputs.annotations }}
73+
update-files:
74+
name: Update Files on VPS
75+
needs: build-latest
76+
uses: ./.github/workflows/update-files.yaml
7377
deploy:
7478
runs-on: ubuntu-latest
7579
name: Deploy to VPS
76-
needs: build-latest
80+
needs: update-files
7781
steps:
7882
- name: Checkout repository
7983
uses: actions/checkout@v4
80-
- name: Update files on VPS
81-
uses: ./.github/workflows/update-files.yaml
8284
- name: Build and restart Docker containers
8385
uses: appleboy/ssh-action@v1
8486
with:

0 commit comments

Comments
 (0)