mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Feature/add release documentation (#803)
* Add support to x vversion from npm * Add support to x vversion from npm * Add support to x vversion from npm * Add support to build on release for documentation
This commit is contained in:
parent
88bfa3eee4
commit
7dbc6d1e47
18
.github/workflows/documentation.yml
vendored
18
.github/workflows/documentation.yml
vendored
@ -34,20 +34,4 @@ jobs:
|
||||
- run: |
|
||||
cd docs
|
||||
npm i
|
||||
npm run build
|
||||
- run: |
|
||||
cd docs
|
||||
git clone https://github.com/adempiere/adempiere-vue.git --branch gh-pages --single-branch gh-pages
|
||||
cp -r .vuepress/dist/* gh-pages/
|
||||
cd gh-pages
|
||||
touch .nojekyll
|
||||
git init
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Update documentation" -a || true
|
||||
- uses: ad-m/github-push-action@master
|
||||
with:
|
||||
branch: gh-pages
|
||||
directory: docs/gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
npm run build
|
26
.github/workflows/publish.yml
vendored
26
.github/workflows/publish.yml
vendored
@ -23,6 +23,11 @@ jobs:
|
||||
- run: npm i
|
||||
- run: npm test
|
||||
- run: npm run build:prod --if-present
|
||||
- run: set -e
|
||||
- run: |
|
||||
cd docs
|
||||
npm i
|
||||
npm run build
|
||||
|
||||
publish-dist:
|
||||
needs: build
|
||||
@ -33,6 +38,27 @@ jobs:
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: set -e
|
||||
- run: |
|
||||
cd docs
|
||||
npm i
|
||||
npm run build
|
||||
- run: |
|
||||
cd docs
|
||||
git clone https://github.com/adempiere/adempiere-vue.git --branch gh-pages --single-branch gh-pages
|
||||
cp -r .vuepress/dist/* gh-pages/
|
||||
cd gh-pages
|
||||
touch .nojekyll
|
||||
git init
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Update documentation" -a || true
|
||||
- uses: ad-m/github-push-action@master
|
||||
with:
|
||||
branch: gh-pages
|
||||
directory: docs/gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: npm i
|
||||
- run: sed -i "s|releaseNoForDocumentation|${{ github.event.release.tag_name }}|g" config/default.json
|
||||
- run: npm run build:prod --if-present
|
||||
|
Loading…
x
Reference in New Issue
Block a user