Skip to content

Commit aca7e8f

Browse files
committed
updated workflow to zip built site and send it
1 parent b4d308b commit aca7e8f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/hugo.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ jobs:
3030
run: npm install && npm run build
3131
- name: Build with Hugo
3232
run: hugo
33-
- name: Push to server
34-
env:
35-
RCLONE_CONFIG_COMPARCH_TYPE: ftp
36-
RCLONE_CONFIG_COMPARCH_HOST: comparch.edu.cvut.cz
37-
RCLONE_CONFIG_COMPARCH_USER: comparch_github
38-
RCLONE_CONFIG_COMPARCH_PASS: ${{ secrets.FtpPass }}
33+
- name: Create ZIP Archive
34+
run: zip -r site.zip public/
35+
- name: Send ZIP to Web for deployment
3936
run: |
40-
rclone sync --exclude=stats/ public/ comparch:web/
37+
curl -X POST -H "Authorization: Bearer ${{ secrets.FtpPass }}" -F "file=@site.zip" http://eval.comparch.edu.cvut.cz:1111/github-actions/update-web

0 commit comments

Comments
 (0)