Skip to content

Commit

Permalink
ci: add github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
cruskipto committed Nov 18, 2024
1 parent badb68c commit 22c31a2
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Release

on:
push:
tags:
- 'v*' # Trigger on version tags

jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # Needed for creating releases

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm build

- name: Create ZIP archive
run: |
cd dist
zip -r ../suiet-recovery-tool.zip ./*
cd ..
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: suiet-recovery-tool.zip
draft: false
prerelease: false
generate_release_notes: true

0 comments on commit 22c31a2

Please sign in to comment.