From 77942541571ab9f3d076b5af5b5085e067519af8 Mon Sep 17 00:00:00 2001 From: Yamel Senih Date: Tue, 23 Feb 2021 16:42:56 -0400 Subject: [PATCH] Add support to GH Actions (#587) * Create node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Update node.js.yml * Create npm-publish.yml * Update README.md * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Delete node.js.yml * Update npm-publish.yml * Update npm-publish.yml * Update npm-publish.yml * Update and rename npm-publish.yml to publish.yml * Delete .travis.yml --- .github/workflows/publish.yml | 44 +++++++++++++++++++++++++++++++++++ .travis.yml | 5 ---- README.md | 1 + 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml delete mode 100755 .travis.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..482e84a4 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,44 @@ +# 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-npm: + 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: npm run build:prod --if-present + - run: ls -la + - run: ls dist/ + - 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' diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index f4be7a08..00000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: 10 -script: npm run test -notifications: - email: false diff --git a/README.md b/README.md index 324feb4b..2d877d99 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@

+ English | [Spanish](./README.es.md) ## Introduction