From ff030e4644434ba8c69ec62e278a31b183e08913 Mon Sep 17 00:00:00 2001 From: Samuel Guay Date: Tue, 12 Sep 2023 18:06:49 -0400 Subject: [PATCH] remove useless crap --- .github/workflows/publish_doc.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish_doc.yaml b/.github/workflows/publish_doc.yaml index 31a9d651..fc2bfa21 100644 --- a/.github/workflows/publish_doc.yaml +++ b/.github/workflows/publish_doc.yaml @@ -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' }}