fix: try again to run Forgejo deploy action
Some checks failed
Deploy Blog / deploy (push) Failing after 42s
Some checks failed
Deploy Blog / deploy (push) Failing after 42s
This commit is contained in:
parent
2233c02398
commit
1fcc9c21b0
1 changed files with 7 additions and 9 deletions
|
@ -57,12 +57,10 @@ jobs:
|
||||||
- run: npm run build:posts
|
- run: npm run build:posts
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
- name: Copy files via SCP
|
- name: Deploy via SSH
|
||||||
uses: appleboy/scp-action@v0.1.4
|
run: |
|
||||||
with:
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
||||||
host: localhost
|
chmod 600 /tmp/ssh_key
|
||||||
username: thomas
|
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@localhost "rm -rf /var/www/systemsobscure.blog/*"
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* thomas@localhost:/var/www/systemsobscure.blog/
|
||||||
source: "dist/*"
|
rm /tmp/ssh_key
|
||||||
target: "/var/www/systemsobscure.blog/"
|
|
||||||
strip_components: 1
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue