-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated workflow to zip built site and send it
- Loading branch information
1 parent
b4d308b
commit aca7e8f
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" http://eval.comparch.edu.cvut.cz:1111/github-actions/update-web |