aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-03-06 18:38:27 -0700
committerCody Robibero <cody@robibe.ro>2024-03-06 18:39:49 -0700
commitc39620ebb5a393148c9c9500e3fc795c6211adb5 (patch)
treef59172df7bd57b6830c55ef981c564b05e76fee3 /.github/workflows
parentMerge pull request #4 from Gauvino/master (diff)
downloadjellyfin-packaging-c39620ebb5a393148c9c9500e3fc795c6211adb5.tar.gz
jellyfin-packaging-c39620ebb5a393148c9c9500e3fc795c6211adb5.tar.bz2
jellyfin-packaging-c39620ebb5a393148c9c9500e3fc795c6211adb5.zip
Add workflow to publish nuget packages
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release-build.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml
index 3772b08..b5c37d5 100644
--- a/.github/workflows/release-build.yaml
+++ b/.github/workflows/release-build.yaml
@@ -489,3 +489,35 @@ jobs:
sudo rm ${BASEDIR}/latest || true
sudo ln -sf ${BASEDIR}/${{ env.JELLYFIN_RELEASE_TYPE }}/${{ env.JELLYFIN_VERSION }} ${BASEDIR}/latest || exit 1
fi
+
+ Nuget:
+ runs-on: ubuntu-22.04
+ steps:
+ - name: "Set dated version for unstable builds"
+ id: version
+ run: |-
+ if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then
+ echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
+ echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV
+ else
+ echo "JELLYFIN_VERSION=$(date +'%Y%m%d%H')" >> $GITHUB_ENV
+ echo "JELLYFIN_RELEASE_TYPE=unstable" >> $GITHUB_ENV
+ fi
+
+ - name: "Install dependencies"
+ run: |-
+ sudo apt-get install --yes python3-git python3-yaml
+
+ - name: "Checkout repository"
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+
+ - name: "Prepare repository"
+ run: |-
+ ./checkout.py ${{ inputs.version || 'master' }}
+
+ - name: "Run builder for Nuget"
+ env:
+ NUGET_STABLE_KEY: ${{ secrets.NUGET_STABLE_KEY }}
+ NUGET_UNSTABLE_KEY: ${{ secrets.NUGET_UNSTABLE_KEY }}
+ run: |-
+ sudo ./build.py ${{ env.JELLYFIN_VERSION }} nuget
bgstack15