From ebb6e63c5c748d0b017e1200387d975556cd3468 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Fri, 30 Oct 2020 17:02:56 +0100 Subject: [PATCH] Add MacOS to CI --- .github/workflows/package.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c7111b7..477eda0 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -13,7 +13,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 @@ -28,6 +28,9 @@ jobs: - name: "Install sync_url.py" run: "pyinstaller sync_url.py -F" + - name: "Move artifact" + run: "mv dist/sync_url* dist/sync_url-${{ matrix.os }}" + - uses: actions/upload-artifact@v2 with: name: "Pferd Sync URL" @@ -55,13 +58,20 @@ jobs: - name: "look at folder structure" run: "ls -lah" + - name: "Rename releases" + run: "mv sync_url-macos-latest sync_url_mac && mv sync_url-ubuntu-latest sync_url_linux && sync_url-windows-latest sync_url_windows.exe" + + - name: "look at folder structure after rename" + run: "ls -lah" + - name: "Create release" uses: softprops/action-gh-release@v1 - name: "Upload release artifacts" uses: softprops/action-gh-release@v1 with: - body: "Download sync_url (or sync_url.exe on Windows) and run it in the terminal or CMD." + body: "Download the correct sync_url for your platform and run it in the terminal or CMD. You might need to make it executable ob Linux/Mac with 'chmod +x '" files: | - sync_url - sync_url.exe + sync_url_mac + sync_url_linux + sync_url_windows.exe