mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
config doc deployment in doc deployment workflow
This commit is contained in:
parent
030da181a2
commit
8f2c6ababb
9
.github/file-filters.yml
vendored
9
.github/file-filters.yml
vendored
@ -12,13 +12,16 @@ webapp: &webapp
|
|||||||
- 'webapp/**/*'
|
- 'webapp/**/*'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
|
|
||||||
markdown: &markdown
|
docs-check: &docs-check
|
||||||
- '**/*.md'
|
|
||||||
- '.github/workflows/check-documentation.yml'
|
- '.github/workflows/check-documentation.yml'
|
||||||
|
|
||||||
|
markdown: &markdown
|
||||||
|
- *docs-check
|
||||||
|
- '**/*.md'
|
||||||
- '.github/workflows/mlc_config.json'
|
- '.github/workflows/mlc_config.json'
|
||||||
|
|
||||||
vuepress: &vuepress
|
vuepress: &vuepress
|
||||||
- '.github/workflows/check-documentation.yml'
|
- *docs-check
|
||||||
- '.github/workflows/deploy-documentation.yml'
|
- '.github/workflows/deploy-documentation.yml'
|
||||||
- '.vuepress/**/*'
|
- '.vuepress/**/*'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
|
|||||||
32
.github/workflows/deploy-documentation.yml
vendored
32
.github/workflows/deploy-documentation.yml
vendored
@ -16,27 +16,33 @@ jobs:
|
|||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Check for file changes
|
- name: Check for file changes
|
||||||
uses: dorny/paths-filter@v2.11.1
|
uses: dorny/paths-filter@master
|
||||||
id: changes
|
id: changes
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
filters: .github/file-filters.yml
|
filters: .github/file-filters.yml
|
||||||
list-files: shell
|
list-files: shell
|
||||||
|
|
||||||
build-and-deploy-documentation:
|
build-and-deploy:
|
||||||
name: Build and deploy documentation
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: files-changed
|
|
||||||
if: needs.files-changed.outputs.documentation == 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Vuepress Build and Deploy
|
- name: Setup Node 20
|
||||||
uses: jenkey2011/vuepress-deploy@master
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Build Vuepress Pages
|
||||||
|
run: npm install && npm run build
|
||||||
|
|
||||||
|
- name: Deploy Vuepress to Github Pages
|
||||||
|
uses: crazy-max/ghaction-github-pages@v4
|
||||||
|
with:
|
||||||
|
target_branch: gh-pages
|
||||||
|
build_dir: .vuepress/dist
|
||||||
|
author: Wolfgang Huß <vorstand@busfaktor.org>
|
||||||
|
fqdn: docs.ocelot.social
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TARGET_REPO: Ocelot-Social-Community/Ocelot-Social
|
|
||||||
TARGET_BRANCH: gh-pages
|
|
||||||
BUILD_SCRIPT: npm install && npm run docs:build -- --config docs/.vuepress/config github.js
|
|
||||||
BUILD_DIR: .vuepress/dist
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user