Skip to content

Commit

Permalink
testing release
Browse files Browse the repository at this point in the history
  • Loading branch information
SamGuay committed Sep 12, 2023
1 parent de8d37e commit 9e69fae
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/publish_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+'

# Allow this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -51,13 +52,25 @@ jobs:
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }} and from github.event_name ${{ github.event_name }}"
- name: Build API reference
run: pdocs as_markdown -o docs/ dcm2bids --overwrite

- name: Build docs for specific release
if: github.event_name == 'release'
- name: Build docs for new release
if: github.event_name == 'published '
run: |
mike deploy -p ${{ github.ref_name }} latest -u
VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
mike deploy -p $VERSION latest -u
# - name: Build docs for specific release (already deployed)
# if: github.event_name != 'release' && github.ref_name
# run: |
# VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
# mike deploy -p $VERSION

- name: Deploy dev version
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down

0 comments on commit 9e69fae

Please sign in to comment.