Skip to content

Commit

Permalink
remove useless crap
Browse files Browse the repository at this point in the history
  • Loading branch information
SamGuay committed Sep 12, 2023
1 parent 9dc63fe commit ff030e4
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/publish_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,23 @@ 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 }} and from github.event_name ${{ github.event_name }}"
- name: Build API reference
run: pdocs as_markdown -o docs/ dcm2bids --overwrite

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

0 comments on commit ff030e4

Please sign in to comment.