Wait... another pipeline fix (let's not loose hope)
This commit is contained in:
parent
e4a803aad5
commit
10708f92e7
1 changed files with 14 additions and 0 deletions
|
|
@ -33,6 +33,12 @@ jobs:
|
|||
- name: "Build the project"
|
||||
run: pnpm run build
|
||||
|
||||
- name: Save the result for deployment
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-artifact
|
||||
path: "dist/"
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: docker
|
||||
|
|
@ -44,10 +50,18 @@ jobs:
|
|||
else
|
||||
apt-get update && apt-get install -y rsync openssh-client
|
||||
fi
|
||||
|
||||
- name: Setup SSH
|
||||
uses: https://github.com/webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build-artifact
|
||||
path: ./dist
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }} -o StrictHostKeyChecking=no" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue