Skip to content

Commit

Permalink
Github workflow release
Browse files Browse the repository at this point in the history
  • Loading branch information
setaou committed Jul 8, 2024
1 parent 35a2b6d commit ae78206
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moneta-web",
"version": "1.4.0",
"version": "1.5.0",
"authors": [
"Hervé BRY <[email protected]>"
],
Expand Down
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
moneta_backend='http://web21:32000';

0 comments on commit ae78206

Please sign in to comment.