Skip to content

Commit

Permalink
Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
setaou committed Jul 8, 2024
1 parent 909b153 commit 0161a46
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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
npm run build
- name: create archive
run: |
mv dist touareg-${{ github.ref_name }}
tar cvzf touareg-${{ github.ref_name }}.tar.gz touareg-${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: touareg-${{ github.ref_name }}.tar.gz

0 comments on commit 0161a46

Please sign in to comment.