From dab7ab2373b25928892459db6ce11b40cf9991f7 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 22 Oct 2023 12:22:32 +0100 Subject: [PATCH] Try to upload nightly .dmg --- .github/workflows/build_macos.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index ec3416ddd..96862e21f 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -76,3 +76,21 @@ jobs: with: name: ${{ env.dmg_name }} path: ${{ env.dmg_name }}.dmg + + - name: Prepare for nightly + shell: bash + run: | + echo '{"bin": "${{ env.dmg_name }}.dmg", "size":' $(wc -c <"${{ env.dmg_name }}.dmg") '}' > latest-macos + + - name: Upload to nightly + if: ${{ github.repository == 'kvirc/KVIrc' && github.event_name == 'push' }} + uses: Dylan700/sftp-upload-action@latest + with: + server: nightly.kvirc.net + username: ${{secrets.NIGHTLY_SFTP_USER}} + key: ${{secrets.NIGHTLY_SFTP_KEY}} + uploads: uploads: | + . => ./x/ + ignore: | + !*.dmg + !latest-macos