mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
Merge pull request #5 from IT4Change/vuepress-deploy
feat(workflow): deploy docs to github - workflow
This commit is contained in:
commit
46937e8a99
5
.github/file-filters.yml
vendored
5
.github/file-filters.yml
vendored
@ -7,4 +7,7 @@ frontend-test-unit-code: &frontend-test-unit-code
|
|||||||
- '**/*'
|
- '**/*'
|
||||||
|
|
||||||
frontend-test-build-code: &frontend-test-build-code
|
frontend-test-build-code: &frontend-test-build-code
|
||||||
- '**/*'
|
- '**/*'
|
||||||
|
|
||||||
|
frontend-test-build-docs: &frontend-test-build-docs
|
||||||
|
- '**/*.md'
|
||||||
20
.github/workflows/deploy.docs.yml
vendored
Normal file
20
.github/workflows/deploy.docs.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: "deploy:docs to github"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: vuepress-deploy
|
||||||
|
uses: jenkey2011/vuepress-deploy@master
|
||||||
|
env:
|
||||||
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
#TARGET_REPO: username/repo
|
||||||
|
#TARGET_BRANCH: master
|
||||||
|
BUILD_SCRIPT: npm install && npm run docs:build
|
||||||
|
BUILD_DIR: build/docs/
|
||||||
34
.github/workflows/test.build.docs.yml
vendored
Normal file
34
.github/workflows/test.build.docs.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: "test:build test docs"
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# only (but most important) job from this workflow required for pull requests
|
||||||
|
# check results serve as run conditions for all other jobs here
|
||||||
|
files-changed:
|
||||||
|
name: Detect File Changes - frontend-test-build-docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes: ${{ steps.changes.outputs.frontend-test-build-docs }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
|
- name: Check for frontend file changes
|
||||||
|
uses: dorny/paths-filter@v2.11.1
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
filters: .github/file-filters.yml
|
||||||
|
list-files: shell
|
||||||
|
|
||||||
|
build:
|
||||||
|
if: needs.files-changed.outputs.changes == 'true'
|
||||||
|
name: Build Docs - Frontend
|
||||||
|
needs: files-changed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Frontend | Build
|
||||||
|
run: npm install && npm run docs:build
|
||||||
5
.github/workflows/test.lint.pr.yml
vendored
5
.github/workflows/test.lint.pr.yml
vendored
@ -7,8 +7,9 @@ on:
|
|||||||
- edited
|
- edited
|
||||||
- synchronize
|
- synchronize
|
||||||
|
|
||||||
permissions: write-all
|
permissions:
|
||||||
# pull-requests: write
|
pull-requests: write
|
||||||
|
actions: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
|
|||||||
@ -80,7 +80,8 @@ The following endpoints are provided given the right command is executed or all
|
|||||||
- [ ] chromatic
|
- [ ] chromatic
|
||||||
- [ ] github actions
|
- [ ] github actions
|
||||||
- [ ] lint locales
|
- [ ] lint locales
|
||||||
- [ ] zähler -> pinia
|
- [ ] feature zähler -> pinia tore
|
||||||
|
- [ ] lint style (inline vue) stylelint?
|
||||||
|
|
||||||
## Known Problems
|
## Known Problems
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user