Skip to content

Commit

Permalink
chore: Update deployment commands in deploy-docs-latest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janosbabik committed Jul 1, 2024
1 parent 5ef8aac commit c4e53f1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/deploy-docs-latest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Deploy LATEST DOCS
on:
workflow_run:
workflows: ["Bump version"]
types:
- completed
push:
branches:
- main
paths:
- 'documentation/**'
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
Expand All @@ -23,7 +17,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Set version
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
Expand All @@ -33,8 +30,10 @@ jobs:
- run: pip install mkdocs-material
- run: pip install mike
- name: Build and Deploy
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
working-directory: ./documentation
run: |
git fetch origin
mike deploy --update-alias --push 1.0 latest
mike deploy --update-alias --push $RELEASE_VERSION latest
mike set-default latest --push

0 comments on commit c4e53f1

Please sign in to comment.