1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-15 00:15:57 +08:00
Yamel Senih 2b1d8f73ff
Improve request util (#712)
* Improve request util
- Improve request util based on basic and generic request
- Add ADempiere request layer (use it as template for others)
- Add Release information from github
- Chamge ADempiere request API fos a custom request

* Add release version

* Add rt-3.2 version

* Minmor change

* Add default action for release

* Add echo

* just a test

* Test release

* Add Release no version for test

* Add test for publish

* Add release no from tag
2021-04-04 16:38:38 -04:00

44 lines
1.3 KiB
YAML

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# 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
name: Publish Project
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm i
- run: npm test
- run: npm run build:prod --if-present
publish-dist:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: sed -i "s|releaseNoForDocumentation|${{ github.event.release.tag_name }}|g" config/default.json
- run: npm run build:prod --if-present
- uses: TheDoctor0/zip-release@0.4.1
with:
filename: 'Adempiere-Vue.zip'
path: 'dist/'
- uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_ACCESS }}
with:
args: 'Adempiere-Vue.zip'