Skip to content

Commit

Permalink
Update github actions to upload to mirror.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoxuanGuo committed Oct 21, 2023
1 parent 70d522b commit 02e1ebd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/docs.yml
@@ -1,11 +1,10 @@
name: Documentation

on:
create:
tags:
push:
branches:
- master
workflow_dispatch:

jobs:
HTML:
Expand All @@ -25,6 +24,15 @@ jobs:
run: |
julia -e 'include("contrib/build_sysimg.jl"); build_sysimg(force=true)'
julia --project=doc/ doc/make.jl deploy
- name: Upload to mirror
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "doc/build/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
PDF:
runs-on: ubuntu-latest
steps:
Expand All @@ -40,4 +48,13 @@ jobs:
with:
name: compiled contents
path: doc/build/*.pdf
- name: Upload to mirror
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "doc/build/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}

0 comments on commit 02e1ebd

Please sign in to comment.