diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aa9c0ce..7a906f1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,3 +50,19 @@ jobs: git config --global user.name "${{ github.actor }}" mike deploy --push --template go-import/redirect.html --update-aliases ${{ github.event.release.tag_name }} latest zot mike set-default --push latest + + - if: github.event_name == 'release' && github.event.action == 'published' + name: Build PDF document + run: | + mkdocs --version + mkdocs build + + - if: github.event_name == 'release' && github.event.action == 'published' + name: Publish artifacts on releases + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: site/pdf/document.pdf + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/mkdocs.yml b/mkdocs.yml index 3cd2b51..0c55588 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,7 +4,7 @@ site_description: Zot Registry repo_url: https://github.com/project-zot/zot repo_name: project-zot/zot edit_uri: "" -copyright: Copyright © 2019 - 2023 The zot project authors, All Rights Reserved. | The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage +copyright: Copyright © 2019 - 2024 The zot project authors, All Rights Reserved. | The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage theme: name: material custom_dir: material @@ -50,6 +50,8 @@ plugins: minify_html: true - git-revision-date-localized - macros + - with-pdf: + copyright: Copyright © 2019 - 2024 The zot project authors, All Rights Reserved. markdown_extensions: - abbr - admonition diff --git a/requirements.txt b/requirements.txt index f73e48f..47c6fc4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ mike==1.1.2 markdown-include==0.7.0 mkdocs-git-revision-date-localized-plugin==1.1.0 mkdocs-macros-plugin==0.7.0 +mkdocs-with-pdf==0.9.3