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
|
pnpm run build
|
||||||
|
|
||||||
- name: Save the result for deployment
|
- name: Save the result for deployment
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-${{ matrix.site }}
|
name: build-${{ matrix.site }}
|
||||||
path: "source/dist/"
|
path: "source/dist/"
|
||||||
|
|
@ -77,7 +77,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
strategy:
|
strategy:
|
||||||
matrix: *site_matrix
|
include: *site_matrix
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
env:
|
env:
|
||||||
|
|
@ -87,6 +88,13 @@ jobs:
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -p ${{ secrets.SERVER_PORT }} -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
|
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
|
- name: Push
|
||||||
run: |
|
run: |
|
||||||
rsync -avz -e "ssh -p ${{ secrets.SERVER_PORT }}" --delete ./dist/ ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:${{ matrix.dest }}
|
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