opt doc #135
This file contains hidden or 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-macOS | |
on: | |
push: | |
branches: [master] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Build job | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Build with VitePress | |
run: npm run docs:build | |
- name: Build docan | |
run: npm run docan | |
- name: Build dolin | |
run: npm run dolin | |
- name: Build worker | |
run: npm run worker | |
- name: Build api | |
run: npm run api | |
- name: Build cli | |
run: npm run cli:build:mac | |
- name: Build APP | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npm run build:mac | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifact | |
path: dist/*.dmg | |