File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,22 @@ name: Build documentation
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
- - ' *'
5
+ # To trigger the workflow once you push to the `main` branch
6
+ # Replace `main` with your branch’s name
7
+ branches : ["main"]
8
+ # Specify to run a workflow manually from the Actions tab on GitHub
8
9
workflow_dispatch :
9
10
10
11
permissions :
11
12
id-token : write
12
13
pages : write
13
14
14
15
env :
16
+ # Name of module and id separated by a slash
15
17
INSTANCE : Writerside/LewMCWiki
18
+ # Replace XX with the ID of the instance in capital letters
16
19
ARTIFACT : webHelpLEWMCWIKI2-all.zip
20
+ # Docker image version
17
21
DOCKER_VERSION : 241.15989
18
22
19
23
jobs :
45
49
environment :
46
50
name : github-pages
47
51
url : ${{ steps.deployment.outputs.page_url }}
52
+ # Requires build job results
48
53
needs : build
49
54
runs-on : ubuntu-latest
50
55
60
65
- name : Setup Pages
61
66
62
67
63
- - name : Determine Deployment Path
64
- id : deployment-path
65
- run : |
66
- if [ "${{ github.ref }}" = "refs/heads/main" ]; then
67
- echo "DEPLOY_PATH=." >> $GITHUB_ENV
68
- else
69
- BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's/refs\/heads\///')
70
- echo "DEPLOY_PATH=${BRANCH_NAME}" >> $GITHUB_ENV
71
- fi
72
-
73
68
- name : Upload artifact
74
69
75
70
with :
78
73
- name : Deploy to GitHub Pages
79
74
id : deployment
80
75
81
- with :
82
- target_branch : gh-pages
83
- target_path : ${{ env.DEPLOY_PATH }}
84
-
You can’t perform that action at this time.
0 commit comments