Skip to content

Commit

Permalink
Adding tags to documentation (#1282)
Browse files Browse the repository at this point in the history
* Adding tag to documentation

* testing

* Update version.

* changing tag

* This is all Alex fault and its habit to naming versions as "vXX.XX", I'm not taking the blame on this one. No way.

* Applying changes to main.

* The getting tag should be conditional (raise error  if there is not)

* restoring nightly file.
  • Loading branch information
germa89 committed Jul 25, 2022
1 parent aaa392e commit 115796e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ jobs:
application_id: ${{ secrets.BOT_APPLICATION_ID }}
application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }}

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
with:
# Optionally strip `v` prefix
strip_v: false

- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -221,13 +229,14 @@ jobs:

- name: Deploy
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.4.0
with:
repository-name: pyansys/pymapdl-docs
token: ${{ steps.get_workflow_token.outputs.token }}
BRANCH: gh-pages
FOLDER: doc/build/html
CLEAN: true
branch: gh-pages
folder: doc/build/html
clean: true
tag: ${{steps.tag.outputs.tag}}

- name: Build PDF Documentation
working-directory: doc
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nightly-doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
xvfb-run make -C doc html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.4.0
with:
repository-name: pyansys/pymapdl-dev-docs
token: ${{ steps.get_workflow_token.outputs.token }}
BRANCH: gh-pages
FOLDER: doc/build/html
CLEAN: true
branch: gh-pages
folder: doc/build/html
clean: true

- name: Notify if fail
uses: skitionek/notify-microsoft-teams@master
Expand Down

0 comments on commit 115796e

Please sign in to comment.