Skip to content

Commit 35f9c62

Browse files
committed
wip
1 parent 7152650 commit 35f9c62

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,34 @@ jobs:
5555
path: _build/latex/*.pdf
5656
retention-days: 14
5757

58-
- name: Prepare rendered site
59-
if: github.event_name == 'push' && github.ref_type == 'tag'
60-
run: |
61-
cp -r _build/html _site
62-
cp -r _build/man _site/man
63-
mkdir _site/pdf
64-
cp _build/latex/*pdf _site/pdf
58+
upload:
59+
runs-on: ubuntu-latest
60+
name: Upload rendered site
61+
needs: build-html-man-pdf
62+
environment: github-pages
63+
if: github.event_name == 'push' && github.ref_type == 'tag'
64+
steps:
65+
66+
- name: Prepare site (html)
67+
uses: actions/download-artifact@v4
68+
with:
69+
name: html
70+
path: _site
71+
72+
- name: Prepare site (man)
73+
uses: actions/download-artifact@v4
74+
with:
75+
name: man
76+
path: _site/man
77+
78+
- name: Prepare site (pdf)
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: man
82+
path: _site/man
6583

6684
- name: Upload rendered site
6785
uses: docker://docker.io/rclone/rclone:latest
68-
if: github.event_name == 'push' && github.ref_type == 'tag'
6986
env:
7087
RCLONE_CONFIG_OBJSTORE_TYPE: s3
7188
RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }}

0 commit comments

Comments
 (0)