From dbd791e2d3ea12d7c0ded140346efc92a969a41c Mon Sep 17 00:00:00 2001 From: asrient <44570278+asrient@users.noreply.github.com> Date: Mon, 20 Nov 2023 02:13:10 +0530 Subject: [PATCH] Create desktop-publish.yml --- .github/workflows/desktop-publish.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/desktop-publish.yml diff --git a/.github/workflows/desktop-publish.yml b/.github/workflows/desktop-publish.yml new file mode 100644 index 0000000..c39a877 --- /dev/null +++ b/.github/workflows/desktop-publish.yml @@ -0,0 +1,31 @@ +name: Desktop App CI + +on: + push: + branches: [ "main" ] + +jobs: + build-and-publish: + runs-on: ${{ matrix.os }} + strategy: + matrix: + # Do not use unbuntu-latest because it causes `The operation was canceled` failures: + # https://github.com/actions/runner-images/issues/6709 + os: [macos-latest, ubuntu-latest, windows-2019] + steps: + - uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18.17.0' + - name: Enter the app directory + run: cd apps + - name: Install dependencies + run: npm install + - name: Build and Publish + run: npm run publish:desktop + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_ENV: production + ONEAUTH_SERVER_URL: ${{ secrets.ONEAUTH_SERVER_URL }} + ONEAUTH_APP_ID: ${{ secrets.ONEAUTH_APP_ID }}