From ae7820603c38a5361637f2ed1a96e966df361cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BRY?= Date: Mon, 8 Jul 2024 16:09:49 +0200 Subject: [PATCH] Github workflow release --- .github/workflows/release.yaml | 34 ++++++++++++++++++++++++++++++++++ bower.json | 2 +- config.js | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml create mode 100644 config.js diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..edf837a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Main + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: npm install + build + run: | + npm install bower + npx bower install + + - name: create archive + run: | + mkdir moneta-web-${{ github.ref_name }} + mv bower_components css images js templates index.html LICENSE moneta-web-${{ github.ref_name }} + tar cvzf moneta-web-${{ github.ref_name }}.tar.gz moneta-web-${{ github.ref_name }} + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: moneta-web-${{ github.ref_name }}.tar.gz \ No newline at end of file diff --git a/bower.json b/bower.json index 801d701..970440b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "moneta-web", - "version": "1.4.0", + "version": "1.5.0", "authors": [ "Hervé BRY " ], diff --git a/config.js b/config.js new file mode 100644 index 0000000..4bca842 --- /dev/null +++ b/config.js @@ -0,0 +1 @@ +moneta_backend='http://web21:32000';