File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,30 @@ jobs:
23
23
deploy-example-site :
24
24
name : Deploy ${{ inputs.example-site-name }}
25
25
environment : ${{ inputs.example-site-name }}
26
- uses : ntno/mkdocs-terminal/.github/workflows/reusable-pages-deploy.yml@main
27
- with :
28
- tag : ${{ inputs.tag }}
29
- mkdocs-terminal-version : ${{ inputs.mkdocs-terminal-version }}
30
- example-site-name : ${{ inputs.example-site-name }}
31
- secrets :
32
- GH_DEPLOY_KEY : ${{ secrets.DEPLOY_KEY }}
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ with :
31
+ ref : ${{ inputs.tag }}
32
+ - name : Install Explicitly Set mkdocs-terminal Version
33
+ run : |
34
+ if [[ "${{ inputs.mkdocs-terminal-version }}" == "" ]]; then
35
+ echo "no mkdocs-version override specified..."
36
+ else
37
+ pip install mkdocs-terminal==${{ inputs.mkdocs-terminal-version }}
38
+ fi
39
+ - name : Build MkDocs
40
+ run : |
41
+ cd tests/examples
42
+ make build site="${{ inputs.example-site-name }}"
43
+ cd -
44
+ - name : Deploy to GitHub Pages
45
+ uses : peaceiris/actions-gh-pages@v4
46
+ with :
47
+ deploy_key : ${{ secrets.DEPLOY_KEY }}
48
+ external_repository : ${{ vars.GH_REPOSITORY_OWNER }}/${{ vars.GH_REPOSITORY_NAME }}
49
+ publish_dir : ./tests/examples/${{ inputs.example-site-name }}/site
33
50
34
51
deploy-highlightjs-example :
35
52
name : Deploy ${{ inputs.example-site-name }}
You can’t perform that action at this time.
0 commit comments