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