mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-05 03:02:19 +00:00
GitHub release action: publish HTML docs in an archive
This commit is contained in:
parent
bfe4240b67
commit
772e2b8be6
2 changed files with 36 additions and 0 deletions
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
|
@ -71,6 +71,41 @@ jobs:
|
||||||
asset_name: ${{ env.ASSET }}
|
asset_name: ${{ env.ASSET }}
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
docs-release-archive:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install packages (Ubuntu)
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11
|
||||||
|
- name: Install poetry
|
||||||
|
uses: abatilo/actions-poetry@v2
|
||||||
|
with:
|
||||||
|
poetry-version: latest
|
||||||
|
- name: Compile docs and zip them up
|
||||||
|
run: |
|
||||||
|
poetry install
|
||||||
|
poetry run -- mkdocs build --no-directory-urls
|
||||||
|
archive="jj-${{ github.event.release.tag_name }}-docs-html.tar.gz"
|
||||||
|
tar czf "$archive" -C "rendered-docs" .
|
||||||
|
echo "ASSET=$archive" >> $GITHUB_ENV
|
||||||
|
- name: Upload release archive
|
||||||
|
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
|
asset_path: ${{ env.ASSET }}
|
||||||
|
asset_name: ${{ env.ASSET }}
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
docs-deploy-website-latest-release:
|
docs-deploy-website-latest-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
@ -12,6 +12,7 @@ extra:
|
||||||
version:
|
version:
|
||||||
provider: mike
|
provider: mike
|
||||||
plugins:
|
plugins:
|
||||||
|
- offline
|
||||||
- search
|
- search
|
||||||
- redirects:
|
- redirects:
|
||||||
redirect_maps:
|
redirect_maps:
|
||||||
|
|
Loading…
Reference in a new issue