From fdb978169ce170c25613901d4c7d97d985471379 Mon Sep 17 00:00:00 2001 From: Jonathan Braat Date: Wed, 29 Nov 2023 10:28:45 +1300 Subject: [PATCH] [ADD] docs for github action --- README.md | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d36337f..b30aa83 100755 --- a/README.md +++ b/README.md @@ -2,15 +2,11 @@ logo

Chrome Extension Boilerplate with
React + Vite + TypeScript + TailwindCSS

-

+

This is a side product of my Chrome Extension Supatabs. Supatabs is a 🔥🔥 BLAZINGLY FAST 🔥🔥 free alternative to OneTab with support for chrome tab groups and searching through tabs. -
+ -

-If you tend to have thousands of tabs open, are a OneTab user, or use any other tab manager -make sure to check it out here! -

## Table of Contents @@ -56,7 +52,7 @@ I couldn't find another minimal boilerplate for React, TypeScript and Tailwind C - [Tailwind CSS](https://tailwindcss.com/) - [ESLint](https://eslint.org/) - [Chrome Extension Manifest Version 3](https://developer.chrome.com/docs/extensions/mv3/intro/) -- Github Action to build and zip your extension (manual trigger) +- [Github Action](https://github.com/JohnBra/vite-web-extension/actions/workflows/ci.yml) to build and zip your extension (manual trigger) ## Usage @@ -74,9 +70,7 @@ I couldn't find another minimal boilerplate for React, TypeScript and Tailwind C 6. If you want to build in production, Just run `yarn build` or `npm run build`. ### Customization -The template includes **all** of the potential Chrome extension pages. - -You likely have to customize it to fit your needs. +The template includes **all** of the Chrome extension pages. You will likely have to customize it to fit your needs. E.g. you don't want the newtab page to activate whenever you open a new tab: 1. remove the directory `newtab` and its contents in `src/pages` @@ -91,6 +85,21 @@ to use it in combination with Tailwind CSS. **Feel free to delete them**. Tailwind can be configured as usual in the `tailwind.config.cjs` file. See doc link below. +### Publish your extension +To upload an extension to the Chrome store you have to pack (zip) it and then upload it to your item in entry +in the Chrome Web Store. + +This repo includes a Github Action Workflow to create a +[optimized prod build and create the zip file](https://github.com/JohnBra/vite-web-extension/actions/workflows/ci.yml). + +To run the workflow do the following: +1. Go to the **"Actions"** tab in your forked repository from this template +2. In the left sidebar click on **"Build and Zip Extension"** +3. Click on **"Run Workflow"** and select the main branch, then **"Run Workflow"** +4. Refresh the page and click the most recent run +5. In the summary page **"Artifacts"** section click on the generated **"vite-web-extension"** +6. Upload this file to the Chrome Web Store as described [here](https://developer.chrome.com/docs/webstore/publish/) + # Tech Docs - [Vite](https://vitejs.dev/) - [Vite Plugin](https://vitejs.dev/guide/api-plugin.html) -- knotmirror 0.0.1