Skip to content

Commit

Permalink
Enhance release workflow and update version
Browse files Browse the repository at this point in the history
- Add tag-based release trigger to GitHub Actions workflow
- Implement automatic release creation with packed extension
- Update README with build status badge
- Bump version to 0.3 in manifest.json
- Improve error handling in popup.js
  • Loading branch information
chinkan committed Sep 15, 2024
1 parent 30a2597 commit cc62cf0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/github-actions-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Pack Chrome Extension
on:
push:
branches: [main]
tags:
- 'v*'

jobs:
pack:
Expand Down Expand Up @@ -31,3 +33,12 @@ jobs:
with:
name: packed-extension
path: packed-extension/extension.zip

- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: packed-extension/extension.zip
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# WizMuse

[![Pack Chrome Extension](https://github.com/chinkan/chrome-ext-wizmuse/actions/workflows/github-actions-pack.yml/badge.svg?branch=main)](https://github.com/chinkan/chrome-ext-wizmuse/actions/workflows/github-actions-pack.yml)

## Project Overview

WizMuse is a browser extension that allows users to summarize web pages using various large language model (LLM) providers. The extension provides a user-friendly interface to extract key points and generate concise summaries of the content on any webpage.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "WizMuse",
"version": "0.2",
"version": "0.3",
"description": "WizMuse is a powerful web page summarization tool. Quickly extract core content from web pages to improve reading efficiency.",
"permissions": ["activeTab", "storage"],
"action": {
Expand Down
3 changes: 2 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ document.addEventListener('DOMContentLoaded', async function () {

function handleError(message) {
console.error('Error:', message);
errorMessage.textContent = message;
errorMessage.textContent =
'Something went wrong. Please refresh the page and try again.';
errorMessage.style.display = 'flex';
loadingIndicator.style.display = 'none';
}
Expand Down

0 comments on commit cc62cf0

Please sign in to comment.