mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
feat: Improve documentation deploy. (#1007)
* feature: Improve documentation deploy. * minimal changes.
This commit is contained in:
parent
eac099ad7a
commit
47bc92f418
59
.github/workflows/docs.yml
vendored
59
.github/workflows/docs.yml
vendored
@ -2,17 +2,18 @@
|
|||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
||||||
# This file was contributed by Carlos Parada and Yamel Senih from ERP Consultores y Asociados, C.A
|
# This file was contributed by Carlos Parada and Yamel Senih from ERP Consultores y Asociados, C.A
|
||||||
|
|
||||||
name: Build Project
|
name: Deploy on Github Pages
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, develop ]
|
branches:
|
||||||
release:
|
# Push events on master and develop branchs
|
||||||
types: [created]
|
- master
|
||||||
|
- develop
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# takes only the directory changes
|
||||||
workflow_dispatch:
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@ -20,33 +21,39 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [14.x]
|
node-version: [14.x]
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: set -e
|
|
||||||
- run: |
|
- name: Generate static vuepress files
|
||||||
cd docs
|
run: |
|
||||||
npm i
|
cd docs
|
||||||
npm run build
|
npm i
|
||||||
- run: |
|
npm run build
|
||||||
cd docs
|
|
||||||
git clone https://github.com/adempiere/adempiere-vue.git --branch gh-pages --single-branch gh-pages
|
- name: Init new repo in dist folder and commit generated files
|
||||||
cp -r .vuepress/dist/* gh-pages/
|
run: |
|
||||||
cd gh-pages
|
cd docs/.vuepress/dist
|
||||||
touch .nojekyll
|
touch .nojekyll
|
||||||
git init
|
git init
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add .
|
git add -A
|
||||||
git commit -m "Update documentation" -a || true
|
git commit -m "docs: ${{ github.event.head_commit.message }}" -a || true
|
||||||
- uses: ad-m/github-push-action@master
|
|
||||||
|
- name: Force push to destination branch
|
||||||
|
uses: ad-m/github-push-action@v0.6.0
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
directory: docs/gh-pages
|
force: true
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
directory: docs/.vuepress/dist
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -20,12 +20,19 @@ features:
|
|||||||
footer: GNU/GPL v3 Licensed | Copyright © 2019-present ADempiere
|
footer: GNU/GPL v3 Licensed | Copyright © 2019-present ADempiere
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="320" src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Adempiere-logo.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# clone the project
|
# clone the project
|
||||||
git clone https://github.com/adempiere/adempiere-vue.git
|
git clone https://github.com/adempiere/adempiere-vue.git
|
||||||
|
|
||||||
|
# be located on the path
|
||||||
|
cd adempiere-vue/docs/
|
||||||
|
|
||||||
# install dependency
|
# install dependency
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
@ -33,6 +40,8 @@ yarn install
|
|||||||
yarn dev
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## Demo
|
## Live Preview
|
||||||
|
|
||||||
[ADempiere UI Demo](https://demo-ui.erpya.com/)
|
[ADempiere UI Demo](https://demo-ui.erpya.com/)
|
||||||
|
|
||||||
|
[ADempiere UI Documentation](https://adempiere.github.io/adempiere-vue/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user