File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 - master
66 tags :
77 - ' *'
8+ workflow_call :
9+
810permissions :
911 contents : write
12+
1013jobs :
1114 deploy :
1215 runs-on : ubuntu-latest
@@ -28,13 +31,11 @@ jobs:
2831 git config user.email "github-actions[bot]@users.noreply.github.com"
2932 - name : Deploy documentation
3033 run : |
31- if [[ $GITHUB_REF == refs/tags/* ]]; then
32- VERSION=${GITHUB_REF#refs/tags/}
33- VERSION=${VERSION#v}
34- VERSION=$(echo $VERSION | cut -d. -f1,2)
34+ if [[ $GITHUB_REF == refs/tags/* ]] || [[ $GITHUB_EVENT_NAME == "workflow_call" ]]; then
35+ VERSION=$(grep "version=" addons/admob/plugin.cfg | cut -d'"' -f2 | sed 's/^v//' | cut -d. -f1,2)
3536
3637 mike deploy --push --update-aliases $VERSION stable
3738 mike set-default --push stable
3839 else
3940 mike deploy --push --update-aliases latest
40- fi
41+ fi
Original file line number Diff line number Diff line change 3333 uses : softprops/action-gh-release@v2
3434 with :
3535 tag_name : ${{env.PLUGIN_VERSION}}
36- name : ${{env.PLUGIN_VERSION}}
37- body : " Manual release for version ${{env.PLUGIN_VERSION}}"
3836 draft : false
3937 prerelease : false
4038 generate_release_notes : true
5654 VERSION : ${{env.PLUGIN_VERSION}}
5755 COMMIT_HASH : ${{ github.sha }}
5856 run : |
59- python3 static/workflow_files/push.py
57+ python3 static/workflow_files/push.py
58+
59+ deploy-docs :
60+ needs : release-version
61+ uses : ./.github/workflows/docs.yml
You can’t perform that action at this time.
0 commit comments