Skip to content

ci: add github release action #1

ci: add github release action

ci: add github release action #1

Workflow file for this run

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