aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/deploy.yml
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-11 23:09:29 +0300
committerValentin Popov <valentin@popov.link>2024-09-11 23:09:29 +0300
commite2f0aecf95a443d2b7cd64e909ae23739bc12f8f (patch)
tree5a536591616a17f2dcc765531cc7217a5957ba75 /.gitea/workflows/deploy.yml
parentaf700755886eb132d1cc351bf9e438c5c7fb7c5a (diff)
downloadpopov.link-e2f0aecf95a443d2b7cd64e909ae23739bc12f8f.tar.xz
popov.link-e2f0aecf95a443d2b7cd64e909ae23739bc12f8f.zip
Update deploy workflow to use rsync with --archive flag
Diffstat (limited to '.gitea/workflows/deploy.yml')
-rw-r--r--.gitea/workflows/deploy.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index d70eb17..336515d 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -1,5 +1,8 @@
name: Deploy
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
jobs:
build:
@@ -25,4 +28,4 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: website
- - run: rsync --delete-after -a ./ /var/www/popov.link/
+ - run: rsync --archive --delete-after ./ /var/www/popov.link/