File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 1
- # Sample workflow for building and deploying a VitePress site to GitHub Pages
2
- #
3
- name : Deploy VitePress site to Pages
1
+ name : Deploy documentation website
4
2
5
3
on :
6
- # Runs on pushes targeting the `main` branch. Change this to `master` if you're
7
- # using the `master` branch as the default branch.
4
+ # Runs on pushes on branches
8
5
push :
9
6
paths :
10
7
- " docs/**"
11
- - " .github/workflows/**" # define the concrete paths on which a change triggers this action, e.g. backend/**
12
-
13
- # Allows you to run this workflow manually from the Actions tab
14
- workflow_dispatch :
15
-
8
+ - " .github/workflows/deploy-docs.yml"
16
9
17
10
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18
11
permissions :
@@ -26,15 +19,15 @@ concurrency:
26
19
group : pages
27
20
cancel-in-progress : false
28
21
29
- jobs :
22
+ jobs :
30
23
deploy-docs :
31
24
runs-on : ubuntu-latest
32
25
steps :
33
26
- id : build_docs
34
- uses : it-at-m/.github/.github/actions/action-build-docs@feat/102-enhance-action-npm-build-to-include-parameters-for-lintingtesting
27
+ uses : it-at-m/.github/.github/actions/action-build-docs@main
35
28
with :
36
29
app-path : ${{inputs.app-path}}
37
30
- id : deploy_docs
38
- if : (github.ref_name == ' main')
31
+ # Only deploy documentation from the main branch to prevent unauthorized changes
39
32
40
- uses : it-at-m/.github/.github/actions/action-deploy-docs@feat/102-enhance-action-npm-build-to-include-parameters-for-lintingtesting
33
+ uses : it-at-m/.github/.github/actions/action-deploy-docs@main
You can’t perform that action at this time.
0 commit comments