Skip to content

Commit 8351a17

Browse files
committed
refactor wip
1 parent 20d6423 commit 8351a17

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/pages-deploy-example-site.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,30 @@ jobs:
2323
deploy-example-site:
2424
name: Deploy ${{ inputs.example-site-name }}
2525
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
3350

3451
deploy-highlightjs-example:
3552
name: Deploy ${{ inputs.example-site-name }}

0 commit comments

Comments
 (0)