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"
|
- name: "Build the project"
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
|
- name: Save the result for deployment
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-artifact
|
||||||
|
path: "dist/"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
@ -44,10 +50,18 @@ jobs:
|
||||||
else
|
else
|
||||||
apt-get update && apt-get install -y rsync openssh-client
|
apt-get update && apt-get install -y rsync openssh-client
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
uses: https://github.com/webfactory/ssh-agent@v0.9.0
|
uses: https://github.com/webfactory/ssh-agent@v0.9.0
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Download Artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-artifact
|
||||||
|
path: ./dist
|
||||||
|
|
||||||
- name: Push
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }} -o StrictHostKeyChecking=no" \
|
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }} -o StrictHostKeyChecking=no" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue