From 363572bde211c57c0ea7def767ca3702c510f968 Mon Sep 17 00:00:00 2001 From: theProgrammerDavid Date: Sat, 11 Dec 2021 19:02:01 +0530 Subject: [PATCH] feat: MacOS build ci --- .github/workflows/build.yml | 4 ++++ .github/workflows/release.yml | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af3f56a..02bd3ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,4 +61,8 @@ jobs: run: | cd build make -j$(nproc) + - name: Package Project + run: | + cd build + cpack -G DragNDrop diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9cf03d..4607014 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: build +name: release on: push: tags: @@ -74,4 +74,17 @@ jobs: run: | cd build make -j$(nproc) + - name: Package Project + run: | + cd build + cpack -G DragNDrop + - name: Build Package + run: | + cd build && cpack -C Release + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: 'build/*.dmg' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}