Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Jan 11, 2025
1 parent 7152650 commit 35f9c62
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,34 @@ jobs:
path: _build/latex/*.pdf
retention-days: 14

- name: Prepare rendered site
if: github.event_name == 'push' && github.ref_type == 'tag'
run: |
cp -r _build/html _site
cp -r _build/man _site/man
mkdir _site/pdf
cp _build/latex/*pdf _site/pdf
upload:
runs-on: ubuntu-latest
name: Upload rendered site
needs: build-html-man-pdf
environment: github-pages
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:

- name: Prepare site (html)
uses: actions/download-artifact@v4
with:
name: html
path: _site

- name: Prepare site (man)
uses: actions/download-artifact@v4
with:
name: man
path: _site/man

- name: Prepare site (pdf)
uses: actions/download-artifact@v4
with:
name: man
path: _site/man

- name: Upload rendered site
uses: docker://docker.io/rclone/rclone:latest
if: github.event_name == 'push' && github.ref_type == 'tag'
env:
RCLONE_CONFIG_OBJSTORE_TYPE: s3
RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }}
Expand Down

0 comments on commit 35f9c62

Please sign in to comment.