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
|
||||
|
||||
- name: Copy files via SCP
|
||||
uses: appleboy/scp-action@v0.1.4
|
||||
with:
|
||||
host: localhost
|
||||
username: thomas
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
source: "dist/*"
|
||||
target: "/var/www/systemsobscure.blog/"
|
||||
strip_components: 1
|
||||
- name: Deploy via SSH
|
||||
run: |
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
|
||||
chmod 600 /tmp/ssh_key
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@localhost "rm -rf /var/www/systemsobscure.blog/*"
|
||||
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* thomas@localhost:/var/www/systemsobscure.blog/
|
||||
rm /tmp/ssh_key
|
||||
|
|
Loading…
Add table
Reference in a new issue