Deploy maybe?

This commit is contained in:
Mark McDowall 2024-01-04 20:07:31 -08:00
parent 5dfaf77198
commit 9f5da7bfa3
2 changed files with 35 additions and 0 deletions

View File

@ -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 }}

27
.github/workflows/deploy.yml vendored Normal file
View File

@ -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