Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release.yml #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 22 additions & 77 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,92 +1,37 @@
name: Release
name: BuildCode 🚀

on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- "README-*.md"
- ".github/ISSUE_TEMPLATE/*"
- '*.yml'
- '.github/*'

jobs:
publish_on_linux:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@v3

- name: Install Node v20
- name: 🔧 Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install

- name: Install electron-builder
run: npm i electron-builder -g

- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:linux
publish_on_win:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
node-version: 18
cache: 'npm'

- name: Install Node v20
uses: actions/setup-node@v3
- name: 📦 Cache node_modules
uses: actions/cache@v3
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install

- name: Install electron-builder
run: npm i electron-builder -g

- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:win
publish_on_macos:
runs-on: macOS-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Node v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm

- name: Install Python
run: brew install [email protected]

- name: "Install Python setuptools"
run: brew install python-setuptools

- name: Install Build Tools
run: |
brew install libtool automake autoconf
sudo xcode-select --reset

- name: Update node-gyp
run: npm install -g node-gyp

- name: Install dependencies
run: npm install
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install dmglicense
run: npm install dmg-license -f
- name: 📚 Install dependencies
run: npm ci

- name: Install electron-builder
run: npm i electron-builder -g
- name: ⚙️ Install electron-builder globally
run: npm install -g electron-builder

- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:mac
- name: 🏗️ Build the project
run: npm run build:ts