Skip to content

Commit

Permalink
updated workflow to zip built site and send it
Browse files Browse the repository at this point in the history
  • Loading branch information
kubakubakuba committed Sep 13, 2024
1 parent b4d308b commit aca7e8f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ jobs:
run: npm install && npm run build
- name: Build with Hugo
run: hugo
- name: Push to server
env:
RCLONE_CONFIG_COMPARCH_TYPE: ftp
RCLONE_CONFIG_COMPARCH_HOST: comparch.edu.cvut.cz
RCLONE_CONFIG_COMPARCH_USER: comparch_github
RCLONE_CONFIG_COMPARCH_PASS: ${{ secrets.FtpPass }}
- name: Create ZIP Archive
run: zip -r site.zip public/
- name: Send ZIP to Web for deployment
run: |
rclone sync --exclude=stats/ public/ comparch:web/
curl -X POST -H "Authorization: Bearer ${{ secrets.FtpPass }}" -F "file=@site.zip" http://eval.comparch.edu.cvut.cz:1111/github-actions/update-web

0 comments on commit aca7e8f

Please sign in to comment.