mirror of
https://github.com/gramps-project/gramps-web.git
synced 2026-04-18 05:08:34 -04:00
31 lines
838 B
YAML
31 lines
838 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "16"
|
|
- name: Install and Build
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
- name: Get the version
|
|
id: get_version
|
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
|
- name: Rename and compress build
|
|
run: |
|
|
mv dist grampsjs-${{steps.get_version.outputs.VERSION}}
|
|
tar -czf grampsjs-${{steps.get_version.outputs.VERSION}}.tar.gz grampsjs-${{steps.get_version.outputs.VERSION}}
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: grampsjs-${{steps.get_version.outputs.VERSION}}.tar.gz
|