Skip to content

Commit b367232

Browse files
committed
developer documentation
1 parent 59dcf77 commit b367232

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
name: Deploy Example Site to GitHub Pages
22

3+
# requires the following environment configuration set up in GitHub Actions
4+
#
5+
# secrets:
6+
# DEPLOY_KEY - private key with write access to the target GitHub repository
7+
# variables:
8+
# EXAMPLE_NAME - name of the example subfolder in ./tests/examples/; ex: 'highlightjs-dark'
9+
# GH_PAGES_URL - URL of target environment; ex: 'https://ntno.github.io/mkdocs-terminal-example-highlightjs-dark/'
10+
# GH_REPOSITORY_NAME - name of the target GitHub repository. target repository must be configured with matching public key. ex: 'mkdocs-terminal-example-highlightjs-dark'
11+
# GH_REPOSITORY_OWNER - owner of the target GitHub repository; ex: 'ntno'
12+
313
on:
414
workflow_dispatch:
515
inputs:
@@ -23,7 +33,9 @@ on:
2333
jobs:
2434
deploy-example-site:
2535
name: Deploy ${{ inputs.environment-name }}
26-
environment: ${{ inputs.environment-name }}
36+
environment:
37+
name: ${{ inputs.environment-name }}
38+
url: ${{ vars.GH_PAGES_URL }}
2739
runs-on: ubuntu-latest
2840
steps:
2941
- name: Checkout

0 commit comments

Comments
 (0)