feat: added cleanup to build action
All checks were successful
Gitea Actions Demo / Build (push) Successful in 1m14s
Gitea Actions Demo / Upload (push) Successful in 9s

This commit is contained in:
2025-09-25 14:12:57 +02:00
parent 92c598727a
commit c11c49f0e2

View File

@@ -39,8 +39,6 @@ jobs:
with:
name: build-artifact
path: ${{ gitea.workspace }}/build
- name: Display structure of downloaded files
run: ls -R
- name: setup ssh
run: |
mkdir -p ~/.ssh/
@@ -56,4 +54,8 @@ jobs:
scp -r -i ${{ github.workspace }}/../private.key -P ${{ secrets.BLOG_PORT }} build blog@madeio.net:/var/www/html/
ssh -i ${{ github.workspace }}/../private.key -p ${{ secrets.BLOG_PORT }} blog@madeio.net "$PERM_COPY"
env:
PERM_COPY: chmod -R 775 /var/www/html/build; cp -r /var/www/html/build/* /var/www/html/
PERM_COPY: chmod -R 775 /var/www/html/build; cp -r /var/www/html/build/* /var/www/html/; rm -r /var/www/html/build
- name: cleanup ssh
run: |
rm ${{ github.workspace }}/../private.key
rm ~/.ssh/known_hosts