File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ jobs:
7979 ref_name : main
8080 ref_type : branch
8181 publish_tag_docs :
82- needs : release
82+ needs : publish_main_docs
8383 uses : ./.github/workflows/yardoc.yml
8484 with :
8585 ref_name : v${{needs.release.outputs.NEW_VERSION}}
8686 ref_type : tag
8787 publish_docs_versions :
88- needs : publish_main_docs
88+ needs : publish_tag_docs
8989 runs-on : ubuntu-latest
9090 steps :
9191 - name : Checkout gh-pages
@@ -107,6 +107,6 @@ jobs:
107107 else
108108 git config --local user.name 'github-actions[bot]'
109109 git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
110- git commit -m "Update versions.js with new version v${{ env. NEW_VERSION }}"
110+ git commit -m "Update versions.js with new version v${{needs.release.outputs. NEW_VERSION}}"
111111 git push
112112 fi
Original file line number Diff line number Diff line change 4343 - name : Determine Destination Dir
4444 id : destination_dir
4545 run : ruby -e 'ref_name = "${{ inputs.ref_name || github.ref_name }}"; ref_name = ref_name[1..-1].split(".")[0..1].join(".") if "${{ inputs.ref_type || github.ref_type }}" == "tag"; puts "DESTINATION_DIR=#{ref_name}"' >> $GITHUB_OUTPUT
46- - name : Avoid race condition with push to main branch
47- if : ${{ (inputs.ref_type || github.ref_type) == 'tag' }}
48- run : sleep 15
4946 - name : Deploy
5047 uses : peaceiris/actions-gh-pages@v4
5148 with :
You can’t perform that action at this time.
0 commit comments