From 54869bdecc77651d82a5acfb7a2ab07d691a51fc Mon Sep 17 00:00:00 2001 From: dj2ls Date: Wed, 16 Feb 2022 17:17:15 +0100 Subject: [PATCH] added first mac workflow a first test... --- .github/workflows/build-project-mac.yml | 30 +++++++++++++++++++++++++ README.md | 1 + 2 files changed, 31 insertions(+) diff --git a/.github/workflows/build-project-mac.yml b/.github/workflows/build-project-mac.yml index 59b5ff9d..2f84376f 100644 --- a/.github/workflows/build-project-mac.yml +++ b/.github/workflows/build-project-mac.yml @@ -105,3 +105,33 @@ jobs: shell: bash run: | ls -R + + - name: Create app bundle + shell: bash + run: | + cp ./gui/dist/FreeDATA*.dmg gui-bundle + cd ./gui-bundle + zip -r FreeDATA_mac.zip . + + - name: Upload macOS GUI Bundle artifacts + uses: actions/upload-artifact@v2 + with: + name: gui-bundle-ubuntu-artifact + path: ./gui-bundle/FreeDATA_mac.zip + + + + + - name: Release + uses: WebFreak001/deploy-nightly@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/DJ2LS/FreeDATA/releases/48616289/assets{?name,label} # find out this value by opening https://api.github.com/repos///releases in your browser and copy the full "upload_url" value including the {?name,label} part + release_id: 48616289 # same as above (id can just be taken out the upload_url, it's used to find old releases) + asset_path: ./gui-bundle/FreeDATA_mac.zip # path to archive to upload + asset_name: FreeDATA_mac-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash + asset_content_type: application/zip # required by GitHub API + max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted + + diff --git a/README.md b/README.md index b7738b96..16a74adf 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ My attempt to create a free and open-source TNC with a GUI for [codec2](https:// ![Build Windows](https://github.com/DJ2LS/FreeDATA/actions/workflows/build-project-win.yml/badge.svg) ![Build Linux](https://github.com/DJ2LS/FreeDATA/actions/workflows/build-project-linux.yml/badge.svg) +![Build macOS](https://github.com/DJ2LS/FreeDATA/actions/workflows/build-project-mac.yml/badge.svg) Please keep in mind, that this project is still a prototype with many issues which need to be solved. Build steps for other OS than Ubuntu are provided, but not fully working, yet.