Update README.md #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Configure | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get package info | |
id: package | |
uses: codex-team/[email protected] | |
- name: Build | |
run: npm ci | |
- name: Make | |
run: npm run make -- --platform linux | |
- name: Publish | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "hubs-backup-tool-linux-x64-${{ steps.package.outputs.version }}.zip" | |
path: out/make/zip/linux/x64 | |
if-no-files-found: error | |
build-darwin: | |
runs-on: macos-13 | |
timeout-minutes: 20 | |
steps: | |
- name: Configure | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get package info | |
id: package | |
uses: codex-team/[email protected] | |
- name: Build | |
run: npm ci | |
- name: Make | |
run: npm run make -- --platform darwin | |
- name: Publish | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "hubs-backup-tool-darwin-x64-${{ steps.package.outputs.version }}.zip" | |
path: out/make/zip/darwin/x64 | |
if-no-files-found: error | |
build-windows: | |
runs-on: windows-2022 | |
timeout-minutes: 20 | |
steps: | |
- name: Configure | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get package info | |
id: package | |
uses: codex-team/[email protected] | |
- name: Build | |
run: npm ci | |
- name: Make | |
run: npm run make -- --platform win32 | |
- name: Publish | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "hubs-backup-tool-win32-x64-${{ steps.package.outputs.version }}.zip" | |
path: out/make/zip/win32/x64 | |
if-no-files-found: error |