2021-12-13 10:50:32 +00:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-macos:
|
2024-08-10 05:53:50 +00:00
|
|
|
runs-on: macos-latest
|
2021-12-13 10:50:32 +00:00
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-01-15 23:31:18 +00:00
|
|
|
node-version: '18.19.0'
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-10-31 08:21:52 +00:00
|
|
|
- name: Install Dependencies
|
2022-04-01 09:07:50 +00:00
|
|
|
run: |
|
|
|
|
yarn set version 1.22.18
|
|
|
|
yarn
|
|
|
|
|
2022-01-31 07:03:41 +00:00
|
|
|
- name: Set Error Log Creds
|
|
|
|
env:
|
|
|
|
ERR_LOG_KEY: ${{ secrets.ERR_LOG_KEY }}
|
|
|
|
ERR_LOG_URL: ${{ secrets.ERR_LOG_URL }}
|
|
|
|
ERR_LOG_SECRET: ${{ secrets.ERR_LOG_SECRET }}
|
2022-03-15 06:26:45 +00:00
|
|
|
TELEMETRY_URL: ${{ secrets.TELEMETRY_URL }}
|
2022-01-31 07:03:41 +00:00
|
|
|
run: |
|
2022-03-14 07:01:09 +00:00
|
|
|
echo $ERR_LOG_KEY > log_creds.txt
|
|
|
|
echo $ERR_LOG_SECRET >> log_creds.txt
|
|
|
|
echo $ERR_LOG_URL >> log_creds.txt
|
2022-03-15 06:26:45 +00:00
|
|
|
echo $TELEMETRY_URL >> log_creds.txt
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
env:
|
|
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
2023-02-16 08:17:53 +00:00
|
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
|
2021-12-13 10:50:32 +00:00
|
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
|
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
|
|
|
CSC_IDENTITY_AUTO_DISCOVERY: true
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2022-04-01 09:07:50 +00:00
|
|
|
run: |
|
|
|
|
yarn set version 1.22.18
|
2023-06-21 06:58:20 +00:00
|
|
|
yarn build --mac --publish always
|
2022-04-01 09:07:50 +00:00
|
|
|
|
2022-01-13 07:32:24 +00:00
|
|
|
- name: Tar files
|
2022-01-21 10:28:43 +00:00
|
|
|
run: tar -cvf dist-macOS.tar dist_electron
|
2022-01-13 07:32:24 +00:00
|
|
|
|
|
|
|
- name: Upload Artifacts
|
2024-09-28 11:10:50 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-01-13 07:32:24 +00:00
|
|
|
with:
|
|
|
|
name: dist-macOS
|
|
|
|
path: dist-macOS.tar
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
build-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-01-15 23:31:18 +00:00
|
|
|
node-version: '18.19.0'
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-10-31 08:21:52 +00:00
|
|
|
- name: Install Dependencies
|
2022-04-01 09:07:50 +00:00
|
|
|
run: |
|
|
|
|
yarn set version 1.22.18
|
|
|
|
yarn
|
|
|
|
|
2022-01-31 07:03:41 +00:00
|
|
|
- name: Set Error Log Creds
|
|
|
|
env:
|
|
|
|
ERR_LOG_KEY: ${{ secrets.ERR_LOG_KEY }}
|
|
|
|
ERR_LOG_URL: ${{ secrets.ERR_LOG_URL }}
|
|
|
|
ERR_LOG_SECRET: ${{ secrets.ERR_LOG_SECRET }}
|
2022-03-15 06:26:45 +00:00
|
|
|
TELEMETRY_URL: ${{ secrets.TELEMETRY_URL }}
|
2022-01-31 07:03:41 +00:00
|
|
|
run: |
|
2022-03-14 07:01:09 +00:00
|
|
|
echo $ERR_LOG_KEY > log_creds.txt
|
|
|
|
echo $ERR_LOG_SECRET >> log_creds.txt
|
|
|
|
echo $ERR_LOG_URL >> log_creds.txt
|
2022-03-15 06:26:45 +00:00
|
|
|
echo $TELEMETRY_URL >> log_creds.txt
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2022-04-01 09:07:50 +00:00
|
|
|
run: |
|
|
|
|
yarn set version 1.22.18
|
2023-06-21 06:58:20 +00:00
|
|
|
yarn build --linux --publish always
|
2021-12-13 10:50:32 +00:00
|
|
|
|
2022-01-13 07:32:24 +00:00
|
|
|
- name: Tar files
|
2022-01-21 10:28:43 +00:00
|
|
|
run: tar -cvf dist-linux.tar dist_electron
|
2022-01-13 07:32:24 +00:00
|
|
|
|
|
|
|
- name: Upload Artifacts
|
2024-09-28 11:10:50 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-01-13 07:32:24 +00:00
|
|
|
with:
|
|
|
|
name: dist-linux
|
|
|
|
path: dist-linux.tar
|
|
|
|
|
2021-12-13 10:50:32 +00:00
|
|
|
build-windows:
|
2022-04-01 09:54:20 +00:00
|
|
|
runs-on: windows-2019
|
2021-12-13 12:36:47 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
2021-12-13 10:50:32 +00:00
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-01-15 23:31:18 +00:00
|
|
|
node-version: '18.19.0'
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-10-31 08:21:52 +00:00
|
|
|
- name: Install Dependencies
|
2022-04-01 09:54:20 +00:00
|
|
|
run: yarn
|
2022-04-01 09:07:50 +00:00
|
|
|
|
2022-01-31 07:03:41 +00:00
|
|
|
- name: Set Error Log Creds
|
|
|
|
env:
|
|
|
|
ERR_LOG_KEY: ${{ secrets.ERR_LOG_KEY }}
|
|
|
|
ERR_LOG_URL: ${{ secrets.ERR_LOG_URL }}
|
|
|
|
ERR_LOG_SECRET: ${{ secrets.ERR_LOG_SECRET }}
|
2022-03-15 06:26:45 +00:00
|
|
|
TELEMETRY_URL: ${{ secrets.TELEMETRY_URL }}
|
2022-01-31 07:03:41 +00:00
|
|
|
run: |
|
2022-03-14 07:01:09 +00:00
|
|
|
echo $ERR_LOG_KEY > log_creds.txt
|
|
|
|
echo $ERR_LOG_SECRET >> log_creds.txt
|
|
|
|
echo $ERR_LOG_URL >> log_creds.txt
|
2022-03-15 06:26:45 +00:00
|
|
|
echo $TELEMETRY_URL >> log_creds.txt
|
2021-12-13 10:50:32 +00:00
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
env:
|
|
|
|
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
|
|
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2023-06-21 06:58:20 +00:00
|
|
|
run: yarn build --win --publish always
|
2022-01-13 07:32:24 +00:00
|
|
|
|
|
|
|
- name: Tar files
|
2022-01-21 10:28:43 +00:00
|
|
|
run: tar -cvf dist-windows.tar dist_electron
|
2022-01-13 07:32:24 +00:00
|
|
|
|
|
|
|
- name: Upload Artifacts
|
2024-09-28 11:10:50 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-01-13 07:32:24 +00:00
|
|
|
with:
|
|
|
|
name: dist-windows
|
2022-04-01 09:07:50 +00:00
|
|
|
path: dist-windows.tar
|