diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml deleted file mode 100644 index 65f215e..0000000 --- a/.github/workflows/release-published.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: On release published - -on: - release: - types: [ published ] - -jobs: - build_release_nuget_package: - name: Build and push NuGet package - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --configuration Release --no-restore - - name: Test - run: dotnet test --configuration Release --no-build --verbosity minimal - - - name: Pack Fenris.OneOfContrib.Blazor - run: | - VERSION=${{ github.event.release.tag_name }} - VERSION=${VERSION#v} - dotnet pack src/Fenris.OneOfContrib.Blazor/ -c Release -o ./artifacts --verbosity minimal -p:PackageVersion=$VERSION - - - name: Push implementation package - run: | - dotnet nuget push ./artifacts/*.nupkg \ - --source "https://api.nuget.org/v3/index.json" \ - --api-key ${{ secrets.NUGET_TOKEN }} - - name: Push symbols package - run: | - dotnet nuget push ./artifacts/*.snupkg \ - --source "https://www.nuget.org/api/v2/symbolpackage" \ - --api-key ${{ secrets.NUGET_TOKEN }} \ No newline at end of file