CI fix tentative #17
This commit is contained in:
parent
74457b6f8d
commit
763dcdd1d0
1 changed files with 10 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
pnpm run build
|
||||
|
||||
- name: Save the result for deployment
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-${{ matrix.site }}
|
||||
path: "source/dist/"
|
||||
|
|
@ -77,7 +77,8 @@ jobs:
|
|||
needs: build
|
||||
runs-on: docker
|
||||
strategy:
|
||||
matrix: *site_matrix
|
||||
include: *site_matrix
|
||||
|
||||
steps:
|
||||
- name: Setup SSH
|
||||
env:
|
||||
|
|
@ -87,6 +88,13 @@ jobs:
|
|||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p ${{ secrets.SERVER_PORT }} -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build-${{ matrix.site }}
|
||||
path: ./dist
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }}" --delete ./dist/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:${{ matrix.dest }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue