From 6c3353706087c5a4f24fb22ebf41a6dfb1d5c78b Mon Sep 17 00:00:00 2001 From: UltimateCoder Date: Tue, 26 Nov 2024 22:15:25 +0100 Subject: [PATCH] Update .github/workflows/nuget-ci.yml --- .github/workflows/nuget-ci.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nuget-ci.yml b/.github/workflows/nuget-ci.yml index 52472aa..54eea6c 100644 --- a/.github/workflows/nuget-ci.yml +++ b/.github/workflows/nuget-ci.yml @@ -1,12 +1,12 @@ on: push: tags: - - "v[0-9]+.[0-9]+.[0-9]+" + - "v[0-9]+.[0-9]+.[0-9]+-preview[0-9][0-9][0-9]" env: PACKAGE_VERSION: ${GITHUB_REF/refs\/tags\/v/} PACKAGE_OWNER: ${{ github.repository_owner }} - PACKAGE_NAME: MongoDbGenericRepository.${{ env.PACKAGE_VERSION }}.nupkg + PACKAGE_NAME: AspNetCore.Identity.MongoDbCore.${{ env.PACKAGE_VERSION }}.nupkg PACKAGE_SOURCE: https://git.home.cuco.li/api/packages/${{ env.PACKAGE_OWNER }}/nuget/index.json PACKAGE_TOKEN: ${{ secrets.PACKAGE_PUSH_TOKEN }} @@ -19,17 +19,7 @@ jobs: - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x.x' - - name: Verify commit exists in origin/master - run: | - git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - git branch --remote --contains | grep origin/master - - name: Build - run: dotnet build --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} - - name: Test - run: dotnet test --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --no-build - name: Pack - run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --no-build --output . + run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --output . - name: Push - run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${GITHUB_TOKEN} - env: - GITHUB_TOKEN: ${{ env.PACKAGE_TOKEN }} \ No newline at end of file + run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${{ env.PACKAGE_TOKEN }} \ No newline at end of file