From c5f36f37f53ef1d4be91702169299dcfea926824 Mon Sep 17 00:00:00 2001 From: Bhoomi Joshi Date: Wed, 24 Jan 2024 16:53:22 +0530 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b73a0aae --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,45 @@ +name: Github release workflow + +on: workflow_dispatch + +jobs: + checks: + runs-on: macos-latest + env: + # dont treat warning as error + CI: false + + strategy: + matrix: + node-version: [18.18.x] + + steps: + - name: Install sha256sum + run: brew install coreutils + + - name: Checkout Repository + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Pull bfx-hf-ui-core + run: npm run fetch-core + + - name: Install + run: npm install + + - name: Build for linux/mac/windows + env: + CSC_KEY_PASSWORD: ${{ secrets.BFX_APPLE_KEYCHAIN_PASSWORD }} + CSC_LINK: ${{ secrets.BFX_APPLE_BUILD_CERTIFICATE_B64 }} + APPLEID: ${{ secrets.BFX_APPLE_ID_USERNAME }} + APPLEIDPASS: ${{ secrets.BFX_APPLE_ID_HONEY_PASSWORD }} + run: npm run deploy + + - name: Results + run: ls -l dist