Skip to content

Commit 6b073c0

Browse files
author
lukaw3d
committed
release beta extension on push
1 parent f9663f6 commit 6b073c0

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
cache: yarn
3232
- name: Install dependencies
3333
run: yarn install --frozen-lockfile
34-
- name: Build app
35-
run: yarn build
34+
- name: Build extension
35+
run: yarn build:ext
3636
- name: Set workflow variables
3737
# Id is needed to access output in a next step.
3838
id: vars
@@ -42,21 +42,37 @@ jobs:
4242
echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')" >> "$GITHUB_OUTPUT"
4343
- name: Create zip file
4444
run: |
45-
cd build/
46-
zip -r ../rose-wallet-web-${{ steps.vars.outputs.VERSION }}.zip .
47-
- name: Parse CHANGELOG.md file and extract changes for the given version
48-
uses: buberdds/extract-changelog-action@v1
49-
id: changelog
50-
with:
51-
version: ${{ steps.vars.outputs.VERSION }}
45+
cd build-ext/
46+
zip -r ../rose-wallet-extension-beta.zip .
5247
- name: Release
5348
uses: softprops/action-gh-release@v1
5449
with:
50+
prerelease: true
5551
files: |
56-
rose-wallet-web-${{ steps.vars.outputs.VERSION }}.zip
57-
build/Content-Security-Policy.txt
58-
build/Permissions-Policy.txt
59-
name: ROSE Wallet ${{ steps.vars.outputs.VERSION }}
60-
body: ${{ steps.changelog.outputs.content }}
52+
rose-wallet-extension-beta.zip
53+
name: ROSE Wallet Extension - beta
54+
body: |
55+
To install beta version as a separate extension:
56+
- open **chrome://extensions/**
57+
- click top right to enable Developer mode
58+
- download **rose-wallet-extension-beta.zip** (assets below)
59+
- drag it into chrome://extensions/
60+
61+
To copy saved wallets from old extension:
62+
- _extensions and instructions like these could be malicious and steal your tokens - don't blindly trust them_
63+
- open **chrome-extension://ppdadbejkmjnefldpcdjhnkpbjkikoip/manifest.json** and open console and run:
64+
```js
65+
if (location.href !== 'chrome-extension://ppdadbejkmjnefldpcdjhnkpbjkikoip/manifest.json') throw 'Is this the new extension instead of old one?';
66+
copy(`
67+
if ((await new Promise(resolve => chrome.storage.local.get('keyringData', resolve))).keyringData) throw 'Already has keyringData. Is this old extension instead of new one?';
68+
const chromeStorageLocal = ${JSON.stringify(await new Promise(resolve => chrome.storage.local.get(null, resolve)))};
69+
await new Promise(resolve => chrome.storage.local.set(chromeStorageLocal, resolve));
70+
Object.entries(${JSON.stringify(window.localStorage)}).forEach(([k, v]) => window.localStorage.setItem(k, v));
71+
chrome.extension.getBackgroundPage().location.reload();
72+
location.reload();
73+
`)
74+
```
75+
- **chrome-extension://jeooipjboldjebnajiegnfpklodgimmf/manifest.json** open console and paste.
76+
- click the new extension
6177
env:
6278
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)