From 287d6f2c61e379e92a3e000d75b36a704b91f4d6 Mon Sep 17 00:00:00 2001 From: Gonzalo Exequiel Pedone Date: Tue, 29 Jun 2021 18:22:19 -0300 Subject: [PATCH] Upload daily build packages 6. --- .github/workflows/linux-mingw.yml | 15 +++-------- .github/workflows/mac.yml | 40 ++++++++++++++++++++++++++---- .github/workflows/windows-msys.yml | 2 -- .github/workflows/windows-vs.yml | 2 -- 4 files changed, 38 insertions(+), 21 deletions(-) diff --git a/.github/workflows/linux-mingw.yml b/.github/workflows/linux-mingw.yml index 2cff9f8..1de95e8 100644 --- a/.github/workflows/linux-mingw.yml +++ b/.github/workflows/linux-mingw.yml @@ -19,15 +19,11 @@ jobs: ./ports/ci/linux-mingw/install_deps.sh - name: Release Build if: ${{ startsWith(github.ref, 'refs/tags/') }} - env: - RELEASE_BUILD: 1 run: | chmod +x ports/ci/linux-mingw/build.sh ./ports/ci/linux-mingw/build.sh - name: Release Deploy if: ${{ startsWith(github.ref, 'refs/tags/') }} - env: - RELEASE_BUILD: 1 run: | chmod +x ports/ci/linux-mingw/deploy.sh ./ports/ci/linux-mingw/deploy.sh @@ -45,27 +41,22 @@ jobs: run: | chmod +x ports/ci/linux-mingw/deploy.sh ./ports/ci/linux-mingw/deploy.sh -# - name: Upload -# run: | -# chmod +x ports/ci/linux-mingw/upload.sh -# ./ports/ci/linux-mingw/upload.sh - - name: Release + - name: Release Upload uses: softprops/action-gh-release@v1 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: files: webcamoid-packages/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Daily Build + - name: Daily Build Upload uses: softprops/action-gh-release@v1 if: ${{ !startsWith(github.ref, 'refs/tags/') }} with: - body: ${{ github.event.head_commit.message }} + body: ${{ github.event.head_commit.message }} (commit: ${{ github.sha }}) prerelease: true files: webcamoid-packages/* name: Daily Build tag_name: daily-build - target_commitish: ${{ github.sha }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Linux MinGW daily build packages diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 88825e8..b2c7169 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -14,18 +14,48 @@ jobs: run: | chmod +x ports/ci/mac/install_deps.sh ./ports/ci/mac/install_deps.sh - - name: Build + - name: Release Build + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | chmod +x ports/ci/mac/build.sh ./ports/ci/mac/build.sh - - name: Deploy + - name: Release Deploy + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | chmod +x ports/ci/mac/deploy.sh ./ports/ci/mac/deploy.sh - - name: Upload + - name: Daily Build + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + env: + DAILY_BUILD: 1 run: | - chmod +x ports/ci/mac/upload.sh - ./ports/ci/mac/upload.sh + chmod +x ports/ci/mac/build.sh + ./ports/ci/mac/build.sh + - name: Daily Deploy + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + env: + DAILY_BUILD: 1 + run: | + chmod +x ports/ci/mac/deploy.sh + ./ports/ci/mac/deploy.sh + - name: Release Upload + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(github.ref, 'refs/tags/') }} + with: + files: webcamoid-packages/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Daily Build Upload + uses: softprops/action-gh-release@v1 + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + with: + body: ${{ github.event.head_commit.message }} (commit: ${{ github.sha }}) + prerelease: true + files: webcamoid-packages/* + name: Daily Build + tag_name: daily-build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: MacOS daily build packages uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/windows-msys.yml b/.github/workflows/windows-msys.yml index b126856..58e5eeb 100644 --- a/.github/workflows/windows-msys.yml +++ b/.github/workflows/windows-msys.yml @@ -29,8 +29,6 @@ jobs: run: ./ports/ci/windows-msys/build.sh - name: Deploy run: ./ports/ci/windows-msys/deploy.sh - - name: Upload - run: ./ports/ci/windows-msys/upload.sh - name: Windows MSYS daily build packages uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/windows-vs.yml b/.github/workflows/windows-vs.yml index 40e80ef..7206f5c 100644 --- a/.github/workflows/windows-vs.yml +++ b/.github/workflows/windows-vs.yml @@ -18,8 +18,6 @@ jobs: run: ports\ci\windows-vs\build.bat - name: Deploy run: ports\ci\windows-vs\deploy.bat - - name: Upload - run: ports\ci\windows-vs\upload.bat - name: Windows MSVC daily build packages uses: actions/upload-artifact@v2 with: