diff --git a/.github/workflows/compile_rust.yml b/.github/workflows/compile_rust.yml index 8eef355..9ca401b 100644 --- a/.github/workflows/compile_rust.yml +++ b/.github/workflows/compile_rust.yml @@ -41,6 +41,8 @@ jobs: run: npm ci --include=dev - name: Build for ${{ matrix.os }} + env: + GH_TOKEN: ${{ secrets.github_token }} run: | if [ "${{ matrix.os }}" == "macos-latest" ]; then npm run release:mac @@ -58,3 +60,14 @@ jobs: dist/*.exe dist/*.zip if-no-files-found: error + + - name: Build/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 }} + + # If the commit is tagged with a version (e.g. "v1.0.0"), + # release the app after building + release: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file