Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Oct 9, 2021
1 parent 4af4f3c commit cad93ab
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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

0 comments on commit cad93ab

Please sign in to comment.