Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: add release config

thecodrrc5d842f22874
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml
new file mode 100644
index 000000000..dfa9dcb49
--- /dev/null
+++ b/apps/web/.github/workflows/release.yml
@@ -0,0 +1,35 @@
+name: Build/release
+
+on: workflow_dispatch
+
+jobs:
+ release:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [macos-latest, ubuntu-latest, windows-latest]
+
+ steps:
+ - name: Check out Git repository
+ uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js 12.x
+ uses: actions/[email protected]
+ with:
+ node-version: 12.x
+ - run: npm install
+ - run: npm build
+
+ - name: Release Electron app
+ uses: samuelmeuli/action-electron-builder@v1
+ with:
+ # GitHub token, automatically provided to the action
+ # (No need to define this secret in the repo settings)
+ github_token: ${{ secrets.github_token }}
+ skip_build: true
+ # If the commit is tagged with a version (e.g. "v1.0.0"),
+ # release the app after building
+ release: true