mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-18 05:35:42 +00:00
added a clean action to github actions
This commit is contained in:
parent
d299b131ec
commit
6616aac495
1 changed files with 7 additions and 0 deletions
7
.github/workflows/website-publish.yml
vendored
7
.github/workflows/website-publish.yml
vendored
|
@ -20,6 +20,13 @@ jobs:
|
|||
hugo-version: '0.91.2'
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
- name: Clean
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: pagwin.xyz
|
||||
username: website
|
||||
key: ${{secrets.SSH_KEY}}
|
||||
script: rm -rf /var/www/pagwin.xyz/*
|
||||
- name: Deploy
|
||||
uses: up9cloud/action-rsync@master
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue