diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 482dadb2a..a99e9a717 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,7 @@ jobs: - name: Setup Environment Variables shell: bash run: | + echo "Run ID: ${{ github.run_id }}" DOTNET_VERSION=$(jq -r '.sdk.version' global.json) echo "SDK_PATH=${{ env.DOTNET_ROOT }}/sdk/${DOTNET_VERSION}" >> "$GITHUB_ENV" echo "SONARR_VERSION=${{ env.VERSION }}.${{ github.run_number }}" >> "$GITHUB_ENV" @@ -190,3 +191,10 @@ jobs: integration_tests: true binary_artifact: ${{ matrix.binary_artifact }} binary_path: ${{ matrix.binary_path }} + + deploy: + if: ${{ github.ref_name == 'develop' || github.ref_name == 'main' }} + uses: ./.github/workflows/deploy.yml + with: + branch: ${{ github.ref_name }} + version: ${{ env.SONARR_VERSION }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..38cf30fa0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy + +on: + workflow_call: + inputs: + branch: + required: true + type: string + version: + required: true + type: string + secrets: + token: + required: true + +jobs: + package_linux: + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v3 + + - name: Download Artifact + uses: actions/download-artifact@v4 + with: + name: linux + path: _artifacts