Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add install.sh to release artifacts (#722)
Leendert de Borst8945b3370538
diff --git a/.github/workflows/browser-extension-build.yml b/.github/workflows/browser-extension-build.ymlindex f9dea370c..63b959330 100644--- a/.github/workflows/browser-extension-build.yml+++ b/.github/workflows/browser-extension-build.yml@@ -164,76 +164,3 @@ jobs:outputs:sha_short: ${{ steps.vars.outputs.sha_short }}-- upload-chrome-release-assets:- runs-on: ubuntu-latest- needs: [build-chrome-extension]- if: github.event_name == 'release' && github.event.action == 'published'- steps:- - name: Download built artifact- uses: actions/download-artifact@v4- with:- name: aliasvault-browser-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', needs.build-chrome-extension.outputs.sha_short) || needs.build-chrome-extension.outputs.sha_short) }}-chrome- path: browser-extension/dist/chrome-unpacked-- - name: Zip Chrome Extension for release- run: |- cd browser-extension/dist- zip -r aliasvault-browser-extension-${{ github.ref_name }}-chrome.zip chrome-unpacked/*-- - name: Upload Chrome Extension ZIP to Release- uses: softprops/action-gh-release@v2- with:- files: browser-extension/dist/aliasvault-browser-extension-*-chrome.zip- token: ${{ secrets.GITHUB_TOKEN }}-- upload-firefox-release-assets:- runs-on: ubuntu-latest- needs: [build-firefox-extension]- if: github.event_name == 'release' && github.event.action == 'published'- steps:- - name: Download built artifact Firefox- uses: actions/download-artifact@v4- with:- name: aliasvault-browser-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', needs.build-firefox-extension.outputs.sha_short) || needs.build-firefox-extension.outputs.sha_short) }}-firefox- path: browser-extension/dist/firefox-unpacked-- - name: Download built artifact Firefox sources- uses: actions/download-artifact@v4- with:- name: aliasvault-browser-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', needs.build-firefox-extension.outputs.sha_short) || needs.build-firefox-extension.outputs.sha_short) }}-sources- path: browser-extension/dist/sources-unpacked-- - name: Zip Firefox Extensions for release- run: |- cd browser-extension/dist- zip -r aliasvault-browser-extension-${{ github.ref_name }}-firefox.zip firefox-unpacked/*- zip -r aliasvault-browser-extension-${{ github.ref_name }}-sources.zip sources-unpacked/*-- - name: Upload Firefox Extension ZIP to Release- uses: softprops/action-gh-release@v2- with:- files: browser-extension/dist/aliasvault-browser-extension-*{-firefox,-sources}.zip- token: ${{ secrets.GITHUB_TOKEN }}-- upload-edge-release-assets:- runs-on: ubuntu-latest- needs: [build-edge-extension]- if: github.event_name == 'release' && github.event.action == 'published'- steps:- - name: Download built artifact- uses: actions/download-artifact@v4- with:- name: aliasvault-browser-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', needs.build-edge-extension.outputs.sha_short) || needs.build-edge-extension.outputs.sha_short) }}-edge- path: browser-extension/dist/edge-unpacked-- - name: Zip Edge Extension for release- run: |- cd browser-extension/dist- zip -r aliasvault-browser-extension-${{ github.ref_name }}-edge.zip edge-unpacked/*-- - name: Upload Edge Extension ZIP to Release- uses: softprops/action-gh-release@v2- with:- files: browser-extension/dist/aliasvault-browser-extension-*-edge.zip- token: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/release.ymlsimilarity index 73%rename from .github/workflows/publish-docker-images.ymlrename to .github/workflows/release.ymlindex 3bfe9a395..3ad509ea2 100644--- a/.github/workflows/publish-docker-images.yml+++ b/.github/workflows/release.yml@@ -1,5 +1,4 @@-# This workflow will publish new Docker images to the GitHub Container Registry when a new release is published.-name: Publish Docker Images+name: Releaseon:release:@@ -11,7 +10,56 @@ env:IMAGE_NAME: ${{ github.repository }}jobs:- build-and-push:+ upload-install-script:+ runs-on: ubuntu-latest+ permissions:+ contents: write+ steps:+ - name: Checkout repository+ uses: actions/checkout@v4++ - name: Upload install.sh to release+ uses: softprops/action-gh-release@v2+ with:+ files: install.sh+ token: ${{ secrets.GITHUB_TOKEN }}++ package-browser-extensions:+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: browser-extension+ steps:+ - uses: actions/checkout@v4++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: '20'+ cache: 'npm'+ cache-dependency-path: browser-extension/package-lock.json++ - name: Install dependencies+ run: npm ci++ - name: Zip extensions+ run: |+ npm run zip:chrome+ npm run zip:firefox+ npm run zip:edge++ - name: Upload extensions to release+ uses: softprops/action-gh-release@v2+ with:+ files: |+ dist/aliasvault-browser-extension-*-chrome.zip+ dist/aliasvault-browser-extension-*-firefox.zip+ dist/aliasvault-browser-extension-*-edge.zip+ dist/aliasvault-browser-extension-*-sources.zip+ token: ${{ secrets.GITHUB_TOKEN }}++ build-and-push-docker:+ needs: [upload-install-script, build-browser-extensions]runs-on: ubuntu-latestpermissions:contents: read@@ -114,4 +162,4 @@ jobs:file: src/Utilities/AliasVault.InstallCli/Dockerfileplatforms: linux/amd64,linux/arm64/v8push: true- tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:${{ github.ref_name }}+ tags: ${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:latest,${{ env.REGISTRY }}/${{ env.REPO_LOWER }}-installcli:${{ github.ref_name }}\ No newline at end of filediff --git a/README.md b/README.mdindex e10a6c90e..0c9c392b1 100644--- a/README.md+++ b/README.md@@ -67,7 +67,7 @@ This method uses pre-built Docker images and works on minimal hardware specifica```bash# Download install script from latest stable release-curl -o install.sh https://raw.githubusercontent.com/lanedirt/AliasVault/0.14.0/install.sh+curl -o install.sh https://github.com/lanedirt/AliasVault/releases/latest/download/install.sh# Make install script executable and run it. This will create the .env file, pull the Docker images, and start the AliasVault containers.chmod +x install.shdiff --git a/docs/misc/release/create-new-release.md b/docs/misc/release/create-new-release.mdindex f4e20271d..3b4304b6c 100644--- a/docs/misc/release/create-new-release.md+++ b/docs/misc/release/create-new-release.md@@ -14,7 +14,6 @@ Follow the steps in the checklist below to prepare a new release.- [ ] Update ./src/Shared/AliasVault.Shared.Core/AppInfo.cs with the minimum supported client versions.- In case API output breaks earlier client versions and/or this version of the client/API will upgrade the client vault model to a new major version.- [ ] Update ./install.sh `@version` in header if the install script has changed. This allows the install script to self-update when running the `./install.sh update` command on default installations.-- [ ] Update README.md install.sh download link to point to the new release version## Versioning browser extension- [ ] Update ./browser-extension/wxt.config.ts with the new version for the extension. This will be shown in the browser extension web stores. This version should be equal to the git release tag.