Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add browser extension assets to GH release (#541)

Leendert de Borst08d7013f75cc
diff --git a/.github/workflows/browser-extension-tests.yml b/.github/workflows/browser-extension-tests.yml
index 62d76cba1..930e6713e 100644
--- a/.github/workflows/browser-extension-tests.yml
+++ b/.github/workflows/browser-extension-tests.yml
@@ -5,6 +5,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
+ release:
+ types: [published]
jobs:
chrome-extension:
@@ -40,3 +42,29 @@ jobs:
with:
name: aliasvault-chrome-extension-${{ github.ref_name == 'main' && format('main-{0}', github.event.head_commit.timestamp) || (startsWith(github.ref, 'refs/tags/') && github.ref_name) || format('{0}-{1}', github.head_ref || github.ref_name, github.sha) }}
path: browser-extensions/chrome/dist/
+
+ upload-release-assets:
+ runs-on: ubuntu-latest
+ needs: chrome-extension
+ if: github.event_name == 'release' && github.event.action == 'published'
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Download built artifact
+ uses: actions/download-artifact@v4
+ with:
+ name: aliasvault-chrome-extension-${{ github.ref_name }}
+ path: browser-extensions/chrome/dist/
+
+ - name: Zip Chrome Extension
+ run: |
+ cd browser-extensions/chrome/dist
+ zip -r ../../aliasvault-chrome-extension.zip .
+
+ - name: Upload Chrome Extension ZIP to Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: aliasvault-chrome-extension.zip
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file