Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Add release build
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed May 3, 2021
1 parent e88f368 commit 8bca6e5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published

jobs:
build:
Expand Down Expand Up @@ -54,24 +57,3 @@ jobs:
yarn test:integration
env:
CI: true
- run: set -e
- run: |
cd docs
npm i
npm run build
- run: |
cd docs
git clone https://github.com/adempiere/proxy-adempiere-api.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 "[email protected]"
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 }}
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This is a basic workflow to help you get started with Actions
# This file was contributed by Carlos Parada and Yamel Senih from ERP Consultores y Asociados, C.A

name: ADempiere Proxy Publish

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the develop branch
release:
types:
- published
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build Documentation Adempiere ...
- run: set -e
- run: |
cd docs
npm i
npm run build
- run: |
cd docs
git clone https://github.com/adempiere/proxy-adempiere-api.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 "[email protected]"
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 }}

0 comments on commit 8bca6e5

Please sign in to comment.