Update .github/workflows/nuget-preview.yml
/ build (push) Failing after 27s

This commit is contained in:
2024-11-26 22:18:34 +01:00
parent 9e913a0582
commit 55ec8aec21
+6 -8
View File
@@ -8,20 +8,18 @@ env:
PACKAGE_OWNER: ${{ github.repository_owner }} PACKAGE_OWNER: ${{ github.repository_owner }}
PACKAGE_NAME: AspNetCore.Identity.MongoDbCore.${{ 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_SOURCE: https://git.home.cuco.li/api/packages/${{ env.PACKAGE_OWNER }}/nuget/index.json
PACKAGE_TOKEN: ${{ github.token }} PACKAGE_TOKEN: ${{ secrets.PACKAGE_PUSH_TOKEN }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Checkout - uses: actions/checkout@v4
uses: actions/checkout@v2 - uses: actions/setup-dotnet@v4
#- name: Set VERSION variable from tag with:
# run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV dotnet-version: '8.x.x'
- name: Pack - name: Pack
run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --output . run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --output .
- name: Push - name: Push
run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${GITHUB_TOKEN} run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${{ env.PACKAGE_TOKEN }}
env:
GITHUB_TOKEN: ${{ env.PACKAGE_TOKEN }}