File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 55
55
path : _build/latex/*.pdf
56
56
retention-days : 14
57
57
58
+ - name : Prepare rendered site
59
+ if : github.event_name == 'push' && github.ref_type == 'tag'
60
+ run : |
61
+ mv _build/html _site
62
+ mv _build/man _site/man
63
+ mkdir _site/pdf
64
+ mv _build/latest/*pdf _site/pdf
65
+
66
+ - name : Upload rendered site
67
+ uses : docker://docker.io/rclone/rclone:latest
68
+ if : github.event_name == 'push' && github.ref_type == 'tag'
69
+ env :
70
+ RCLONE_CONFIG_OBJSTORE_TYPE : s3
71
+ RCLONE_CONFIG_OBJSTORE_PROVIDER : ${{ secrets.S3_PROVIDER }}
72
+ RCLONE_CONFIG_OBJSTORE_ACCESS_KEY_ID : ${{ secrets.S3_ACCESS_KEY_ID }}
73
+ RCLONE_CONFIG_OBJSTORE_SECRET_ACCESS_KEY : ${{ secrets.S3_SECRET_ACCESS_KEY }}
74
+ RCLONE_CONFIG_OBJSTORE_ENDPOINT : ${{ secrets.S3_ENDPOINT }}
75
+ RCLONE_CONFIG_OBJSTORE_REGION : ${{ secrets.S3_REGION }}
76
+ with :
77
+ args : sync _site objstore:${{ secrets.S3_BUCKET }}/${{ github.ref_name }}
78
+
58
79
publish :
59
80
runs-on : ubuntu-latest
60
81
name : Publish to GitHub pages
You can’t perform that action at this time.
0 commit comments