Skip to content

Commit 4f26cc1

Browse files
committed
Updated: Docs Workflow
1 parent ad2e03a commit 4f26cc1

1 file changed

Lines changed: 17 additions & 25 deletions

File tree

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
1-
name: Deploy Documentation
1+
name: MkDocs Build and Deploy
22

3-
# Controls when the action will run.
43
on:
5-
# Triggers the workflow on push on the master branch
6-
push:
7-
branches: [ main, master, refactor-reloaded3-compliance ]
8-
9-
# Allows you to run this workflow manually from the Actions tab
104
workflow_dispatch:
5+
push:
6+
branches: [ main, master ]
7+
paths:
8+
- "mkdocs.yml"
9+
- "docs/**"
10+
pull_request:
11+
branches: [ main, master ]
12+
paths:
13+
- "mkdocs.yml"
14+
- "docs/**"
1115

12-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1316
jobs:
14-
# This workflow contains a single job called "build"
1517
build:
16-
# The type of runner that the job will run on
1718
runs-on: ubuntu-latest
18-
19-
# Steps represent a sequence of tasks that will be executed as part of the job
19+
permissions:
20+
contents: read
21+
pages: write
22+
id-token: write
2023
steps:
21-
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- name: Checkout Branch
24-
uses: actions/checkout@v2
25-
with:
26-
submodules: recursive
27-
28-
# Deploy MkDocs
2924
- name: Deploy MkDocs
30-
# You may pin to the exact commit or the version.
31-
# uses: mhausenblas/mkdocs-deploy-gh-pages@66340182cb2a1a63f8a3783e3e2146b7d151a0bb
32-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
uses: Reloaded-Project/reloaded-project-configurations-rust/.github/actions/deploy-mkdocs-documentation@v1
26+
with:
3527
REQUIREMENTS: ./docs/requirements.txt

0 commit comments

Comments
 (0)