Skip to content

Commit

Permalink
Update GitHub Actions workflow for building and releasing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Aug 17, 2024
1 parent 4740d40 commit 117b229
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- 'v*.*.*'

jobs:
build-and-release:
runs-on: ${{ matrix.os }}
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -22,7 +22,7 @@ jobs:
node-version: '18'

- name: Install dependencies
run: npm ci
run: npm install

- name: Build and Package the app
run: npm run package
Expand All @@ -33,11 +33,34 @@ jobs:
name: comet-${{ matrix.os }}
path: out/make/**/*.*

- name: Download Artifacts
release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Artifacts (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/download-artifact@v2
with:
name: comet-${{ matrix.os }}
path: ./artifacts/${{ matrix.os }}
name: comet-ubuntu-latest
path: ./artifacts/ubuntu

- name: Download Artifacts (Windows)
if: matrix.os == 'windows-latest'
uses: actions/download-artifact@v2
with:
name: comet-windows-latest
path: ./artifacts/windows

- name: Download Artifacts (macOS)
if: matrix.os == 'macos-latest'
uses: actions/download-artifact@v2
with:
name: comet-macos-latest
path: ./artifacts/macos

- name: Publish to GitHub Releases
run: npm run publish -- --prerelease
Expand Down

0 comments on commit 117b229

Please sign in to comment.