aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-06 20:54:47 -0500
committerGitHub <noreply@github.com>2024-03-06 20:54:47 -0500
commit06908a14c5a95a4c08cee99a534329e96ae25537 (patch)
treef59172df7bd57b6830c55ef981c564b05e76fee3 /.github/workflows
parentMerge pull request #4 from Gauvino/master (diff)
parentAdd workflow to publish nuget packages (diff)
downloadjellyfin-packaging-06908a14c5a95a4c08cee99a534329e96ae25537.tar.gz
jellyfin-packaging-06908a14c5a95a4c08cee99a534329e96ae25537.tar.bz2
jellyfin-packaging-06908a14c5a95a4c08cee99a534329e96ae25537.zip
Merge pull request #5 from jellyfin-sandbox/publish-nuget
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