diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6a0321..57a44cc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,6 +32,7 @@ jobs: cp README.md LICENSE firefox echo "Copying docs into folder" cp -r docs firefox/docs + cd firefox echo "Zipping folder into stardown-${{ github.ref_name }}-firefox.zip" zip -r "stardown-${{ github.ref_name }}-firefox.zip" firefox - name: Build for Chrome @@ -41,13 +42,14 @@ jobs: cp README.md LICENSE chrome echo "Copying docs into folder" cp -r docs chrome/docs + cd chrome echo "Zipping folder into stardown-${{ github.ref_name }}-chrome.zip" - zip -r "stardown-${{ github.ref_name }}-chrome.zip" chrome + zip -r "stardown-${{ github.ref_name }}-chrome.zip" . - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: generate_release_notes: true files: | - stardown-${{ github.ref_name }}-firefox.zip - stardown-${{ github.ref_name }}-chrome.zip + firefox/stardown-${{ github.ref_name }}-firefox.zip + chrome/stardown-${{ github.ref_name }}-chrome.zip diff --git a/chrome/browserSpecific.js b/chrome/browserSpecific.js index 9170884..05a333a 100644 --- a/chrome/browserSpecific.js +++ b/chrome/browserSpecific.js @@ -155,7 +155,7 @@ export async function handleCopyRequest(text) { try { await navigator.clipboard.writeText(text); } catch (err) { - console.error('navigator.clipboard.writeText:', err); + console.error('navigator.clipboard.writeText:', err.message); console.log('Using fallback method to write text to the clipboard.'); const textarea = document.createElement('textarea'); diff --git a/docs/install and update instructions/index.html b/docs/install and update instructions/index.html index 08b8704..063bdc8 100644 --- a/docs/install and update instructions/index.html +++ b/docs/install and update instructions/index.html @@ -35,6 +35,59 @@