File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ repository_dispatch :
3+ types :
4+ - publish_spec
5+ workflow_dispatch :
6+ inputs :
7+ ref :
8+ description : Branch or tag to publish (e.g. refs/heads/development/v2).
9+ required : true
10+ default : refs/heads/master
11+ aliases :
12+ description : Space-delimited aliases to publish (e.g. latest v2-latest).
13+ required : false
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ container : python:3
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ ref : ${{ github.event.client_payload.ref || github.event.inputs.ref }}
22+ fetch-depth : 0 # Because we will be pushing the gh-pages branch
23+ token : ${{ secrets.ACTIONS_DEPLOY_KEY }}
24+ - name : Install pre-requisites
25+ run : pip install -r requirements.txt
26+ - name : Install mike
27+ run : pip install mike==1.2.0
28+ - name : Extract branch or tag name
29+ id : extract-branch-or-tag-name
30+ run : echo "::set-output name=${REF##*/}"
31+ with :
32+ ref : ${{ github.event.client_payload.ref || github.event.inputs.ref }}
33+ - name : Build docs
34+ run : mike deploy ${{ steps.outputs.extract-branch-or-tag-name.name }} ${{ github.event.inputs.aliases }}
You can’t perform that action at this time.
0 commit comments