From cefcaed3580f40d690a22a05dc69606b9976aa1a Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 11 Jan 2022 17:40:58 -0500 Subject: [PATCH 1/2] Update create_package.yml --- .github/workflows/create_package.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/create_package.yml b/.github/workflows/create_package.yml index bf1d4dbb..d6d43916 100644 --- a/.github/workflows/create_package.yml +++ b/.github/workflows/create_package.yml @@ -9,9 +9,25 @@ on: workflow_dispatch: jobs: + check_changelog: + name: Check Changelog + runs-on: ubuntu-latest + steps: + - name: Verify Changelog + id: verify_changelog + if: ${{ github.ref == 'refs/heads/master' }} + uses: SunshineStream/actions/verify_changelog@v0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + outputs: + next_version: ${{ steps.verify_changelog.outputs.changelog_parser_version }} + last_version: ${{ steps.verify_changelog.outputs.latest_release_tag_name }} + release_body: ${{ steps.verify_changelog.outputs.changelog_parser_description }} + build_appimage: name: AppImage runs-on: ubuntu-20.04 + needs: check_changelog steps: - name: Checkout @@ -87,14 +103,19 @@ jobs: name: sunshine-AppImage path: artifacts/ - name: Create Release + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: SunshineStream/actions/create_release@v0 with: token: ${{ secrets.GITHUB_TOKEN }} + next_version: ${{ needs.check_changelog.outputs.next_version }} + last_version: ${{ needs.check_changelog.outputs.last_version }} + release_body: ${{ needs.check_changelog.outputs.release_body }} build_linux: name: Linux runs-on: ubuntu-20.04 + needs: check_changelog strategy: fail-fast: true # false to test all, true to fail entire job if any fail matrix: @@ -138,10 +159,14 @@ jobs: uses: SunshineStream/actions/create_release@v0 with: token: ${{ secrets.GITHUB_TOKEN }} + next_version: ${{ needs.check_changelog.outputs.next_version }} + last_version: ${{ needs.check_changelog.outputs.last_version }} + release_body: ${{ needs.check_changelog.outputs.release_body }} build_win: name: Windows runs-on: windows-2019 + needs: check_changelog steps: - name: Checkout @@ -194,6 +219,10 @@ jobs: name: sunshine-${{ runner.os }} path: artifacts/ - name: Create Release + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} uses: SunshineStream/actions/create_release@v0 with: token: ${{ secrets.GITHUB_TOKEN }} + next_version: ${{ needs.check_changelog.outputs.next_version }} + last_version: ${{ needs.check_changelog.outputs.last_version }} + release_body: ${{ needs.check_changelog.outputs.release_body }} From a2c45f8de0f788ee50501c5b7a4c502f0523669d Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:03:30 -0500 Subject: [PATCH 2/2] Update create_package.yml -Fix typo in Windows build --- .github/workflows/create_package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_package.yml b/.github/workflows/create_package.yml index d6d43916..81123f06 100644 --- a/.github/workflows/create_package.yml +++ b/.github/workflows/create_package.yml @@ -201,7 +201,7 @@ jobs: - name: Package Windows run: | cd sunshine-windows-build - Del ..\assets\apps_linux.json + del ..\assets\apps_linux.json 7z a Sunshine-Windows.zip ..\assets 7z a Sunshine-Windows.zip sunshine.exe 7z a Sunshine-Windows.zip tools\dxgi-info.exe @@ -211,7 +211,7 @@ jobs: 7z a Sunshine-Windows.zip ..\tools\uninstall-service.bat cd .. mkdir artifacts - move "sunshine-windows-build/Sunshine-Windows.zip" "artifats" + move "sunshine-windows-build\Sunshine-Windows.zip" "artifacts" - name: Upload Artifacts if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v2