Skip to content

Commit

Permalink
firefox release workflow fixes, readme (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair authored Apr 30, 2024
1 parent 6094a6e commit 8f1e232
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/actions/testsSetup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: rainbowbx-${{ github.sha }}.zip
name: rainbowbx-${{ github.sha }}
path: build
- name: Setup xvfb
shell: 'bash'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rainbowbx-${{ github.sha }}.zip
name: rainbowbx-${{ github.sha }}
path: build/
- name: Remove old screenshots
run: rm -rf screenshots/*
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
# - name: Download build artifacts
# uses: actions/download-artifact@v3
# with:
# name: rainbowbx-${{ github.sha }}.zip
# name: rainbowbx-${{ github.sha }}
# path: build
# - name: Setup xvfb
# run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Archive the build artifact
uses: actions/upload-artifact@v3
with:
name: rainbowbx-v${{ env.release_version }}.zip
name: rainbowbx-v${{ env.release_version }}
path: build/
- name: Submit to the chrome webstore
uses: PlasmoHQ/bpp@v3
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/publish-prod-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Archive the build artifact
uses: actions/upload-artifact@v3
with:
name: rainbowbx-chrome-v${{ env.release_version }}.zip
name: rainbowbx-chrome-v${{ env.release_version }}
path: build/
- name: Zip it
run: yarn zip
Expand All @@ -45,14 +45,6 @@ jobs:
with:
artifact: ./rainbowbx.zip
keys: ${{ secrets.BPP_KEYS_PROD }}

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: Version Bump (Production) - v${{ env.release_version }}
committer_name: GitHub Actions
committer_email: [email protected]
add: '*.json'
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/publish-prod-firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,18 @@ jobs:
run: yarn firefox:build
- name: Update the manifest
run: yarn update-manifest prod
- name: Update the manifest for firefox
run: yarn firefox:manifest
- name: Archive the build artifact
uses: actions/upload-artifact@v3
with:
name: rainbowbx-firefox-v${{ env.release_version }}.zip
name: rainbowbx-firefox-v${{ env.release_version }}
path: build/
- name: Zip it
run: yarn firefox:zip
- name: Submit to the firefox addons store
uses: PlasmoHQ/[email protected]
with:
artifact: ./rainbowbx.xpi
keys: ${{ secrets.BPP_KEYS_PROD_FIREFOX }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: Version Bump (Production) - v${{ env.release_version }}
committer_name: GitHub Actions
committer_email: [email protected]
add: '*.json'
# - name: Zip it
# run: yarn firefox:zip
# - name: Submit to the firefox addons store
# uses: PlasmoHQ/[email protected]
# with:
# artifact: ./rainbowbx.xpi
# keys: ${{ secrets.BPP_KEYS_PROD_FIREFOX }}
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
Expand Down
39 changes: 39 additions & 0 deletions README_FIREFOX.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Rainbow Extension for Firefox

## Prerequisites

- [yarn](https://classic.yarnpkg.com/en/docs/install)
- [nvm](https://github.com/nvm-sh/nvm)

## Getting started on Firefox

### 1. Set up Node

Use node v18 (18.18) or if you use nvm follow the instructions below

```bash
nvm install 18.18
# or
nvm use 18.18
```

### 2. Install project dependencies

```bash
yarn setup
```


### 3. Build the extension

```bash
yarn firefox:build && yarn update-manifest:prod
```

### 4. Generate bundle

```bash
yarn zip && yarn firefox:zip
```

You should find a xpi file named `rainbowbx.xpi` in the root folder of this repository

0 comments on commit 8f1e232

Please sign in to comment.