Deploy maybe?
This commit is contained in:
parent
5dfaf77198
commit
9f5da7bfa3
|
@ -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 }}
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue