Skip to content

Commit

Permalink
DOC Update deploy docs workflow for multiversion (#175)
Browse files Browse the repository at this point in the history
* update github workflow deploy docs

* update github workflow deploy docs
  • Loading branch information
lucyleeow authored May 31, 2022
1 parent 0ff5677 commit 7c544e9
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Get TAG
run: echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV

- name: Get DOC_DIR
run: |
DOC_DIR="$(cut -d '.' -f 1,2 <<< "$TAG")"
echo "DOC_DIR=${DOC_DIR:1}".x >> $GITHUB_ENV
- name: Set up Qt
uses: tlambert03/setup-qt-libs@v1

Expand Down Expand Up @@ -49,11 +57,22 @@ jobs:
working-directory: doc
run: make html

- name: Deploy docs 🚀
- name: Deploy dev docs 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: doc/_build/html
target-folder: dev
clean: true

- name: Deploy stable docs 🚀
uses: JamesIves/[email protected]
if: startsWith(env.TAG, 'v')
with:
branch: gh-pages
folder: doc/_build/html
target-folder: ${{ env.DOC_DIR }}
clean: true

- name: Cache
uses: actions/cache@v2
Expand Down

0 comments on commit 7c544e9

Please sign in to comment.