@@ -53,24 +53,23 @@ jobs:
53
53
git config --global user.name "${{ github.actor }}"
54
54
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
55
55
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
-
60
56
- name : Build API reference
61
57
run : pdocs as_markdown -o docs/ dcm2bids --overwrite
62
58
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
+
63
66
- name : Build docs for releases already deployed
64
67
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
65
68
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 }}
68
72
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
74
73
75
74
- name : Deploy dev version
76
75
if : ${{ github.ref == 'refs/heads/master' }}
0 commit comments