ci: fix build

This commit is contained in:
cxfksword 2023-07-20 22:23:01 +08:00
parent e7eabfe7d7
commit 54574cf0ce
2 changed files with 4 additions and 6 deletions

View File

@ -29,13 +29,12 @@ jobs:
VERSION="$VERSION.0"
echo ::set-output name=VERSION::${VERSION}
echo ::set-output name=APP_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
- name: Install dependencies
run: dotnet restore ${{ env.project }} --no-cache
- name: Build
run: |
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 --output=tmp ${{ env.project }}
dotnet restore ${{ env.project }} --no-cache
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 ${{ env.project }}
mkdir -p artifacts
cp ./tmp/Jellyfin.Plugin.MetaShark.dll ./artifacts/
cp ./bin/Release/net6.0/Jellyfin.Plugin.MetaShark.dll ./artifacts/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:

View File

@ -30,10 +30,9 @@ jobs:
VERSION="$VERSION.0"
echo ::set-output name=VERSION::${VERSION}
echo ::set-output name=APP_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
- name: Install dependencies
run: dotnet restore ${{ env.project }} --no-cache
- name: Build
run: |
dotnet restore ${{ env.project }} --no-cache
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 --output=tmp -p:Version=${{steps.vars.outputs.VERSION}} ${{ env.project }}
mkdir -p artifacts
cp ./tmp/Jellyfin.Plugin.MetaShark.dll ./artifacts/