Skip to content

Commit ff030e4

Browse files
committed
remove useless crap
1 parent 9dc63fe commit ff030e4

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/publish_doc.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,23 @@ jobs:
5353
git config --global user.name "${{ github.actor }}"
5454
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
5555
56-
- name: GitHub Tag Name example
57-
run: |
58-
echo "Tag name from github.ref_name: ${{ github.ref_name }} and from github.event_name ${{ github.event_name }}"
59-
6056
- name: Build API reference
6157
run: pdocs as_markdown -o docs/ dcm2bids --overwrite
6258

59+
- name: Build docs for new release
60+
if: github.event_name == 'release'
61+
run: |
62+
echo "Version: $(dcm2bids -v | awk '/dcm2bids/ {print $3}')
63+
echo "Version: {{ github.ref_name }}"
64+
mike deploy -p ${{ github.ref_name }} latest -u
65+
6366
- name: Build docs for releases already deployed
6467
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
6568
run: |
66-
VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
67-
mike deploy -p $VERSION
69+
echo "Version: $(dcm2bids -v | awk '/dcm2bids/ {print $3}')
70+
echo "Version: ${{ github.ref_name }}"
71+
mike deploy -p ${{ github.ref_name }}
6872
69-
- name: Build docs for new release
70-
if: github.event_name == 'published'
71-
run: |
72-
VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
73-
mike deploy -p ${{ github.event.ref }} latest -u
7473
7574
- name: Deploy dev version
7675
if: ${{ github.ref == 'refs/heads/master' }}

0 commit comments

Comments
 (0)