Skip to content

Commit

Permalink
Merge pull request #1 from phucngo2/release
Browse files Browse the repository at this point in the history
Chore(47 ~ 50): Add Github action
  • Loading branch information
phucngo2 authored Jul 28, 2024
2 parents 8cc6416 + 838bf13 commit b575470
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build/release Electron app

on:
push:
branches:
- release

jobs:
release:
permissions:
contents: write
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install Dependencies
run: npm install

- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux

- name: build-mac
if: matrix.os == 'macos-latest'
run: npm run build:mac

- name: build-win
if: matrix.os == 'windows-latest'
run: npm run build:win

- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 comments on commit b575470

Please sign in to comment.