Skip to content

Commit

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

release:
types: [published]
# Allow this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -59,23 +60,17 @@ jobs:
- name: Build API reference
run: pdocs as_markdown -o docs/ dcm2bids --overwrite

- name: Build docs for new release
if: github.event_name == 'published'
- name: Build docs for releases already deployed
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: |
VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
mike deploy -p $VERSION latest -u
mike deploy -p $VERSION
- name: Build docs for new release
if: github.event_name == 'published' && startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'published'
run: |
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
mike deploy -p ${{ github.event.ref }} latest -u
- name: Deploy dev version
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down

0 comments on commit 9dc63fe

Please sign in to comment.