Skip to content

Commit d4a40b1

Browse files
authored
Update deploy-docs.yml
1 parent 4b81f74 commit d4a40b1

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
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
42

53
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
85
push:
96
paths:
107
- "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"
169

1710
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1811
permissions:
@@ -26,15 +19,15 @@ concurrency:
2619
group: pages
2720
cancel-in-progress: false
2821

29-
jobs:
22+
jobs:
3023
deploy-docs:
3124
runs-on: ubuntu-latest
3225
steps:
3326
- 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
3528
with:
3629
app-path: ${{inputs.app-path}}
3730
- id: deploy_docs
38-
if: (github.ref_name == 'main')
31+
# Only deploy documentation from the main branch to prevent unauthorized changes
3932

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

0 commit comments

Comments
 (0)