diff --git a/.github/workflows/beta.yaml b/.github/workflows/beta.yaml index 6de21ec..b26e9de 100644 --- a/.github/workflows/beta.yaml +++ b/.github/workflows/beta.yaml @@ -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: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9d2be02..d14c0d7 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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/