Skip to content

Commit

Permalink
feat: add github action to automatically release
Browse files Browse the repository at this point in the history
  • Loading branch information
mamertofabian committed Nov 25, 2024
1 parent c0d5627 commit 0a02221
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Release

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

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Zip build artifacts
run: |
cd dist
zip -r ../chrome-extension.zip .
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: chrome-extension.zip
draft: false
prerelease: false
generate_release_notes: true

0 comments on commit 0a02221

Please sign in to comment.