This commit is contained in:
@@ -10,22 +10,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# - name: Setup .NET
|
||||
# uses: actions/setup-dotnet@v4
|
||||
# with:
|
||||
# dotnet-version: 8.0.x
|
||||
# source-url: http://192.168.2.83:3100/api/packages/sxhundred/nuget/index.json
|
||||
# env:
|
||||
# NUGET_AUTH_TOKEN: ${{secrets.READ_NUGET_PAT}}
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
source-url: http://192.168.2.83:3100/api/packages/sxhundred/nuget/index.json
|
||||
env:
|
||||
NUGET_AUTH_TOKEN: ${{secrets.READ_NUGET_PAT}}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
name: Checkout
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# - name: Add Nuget Credentials
|
||||
# # run: dotnet nuget update source gitea --username sxhundred --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
|
||||
# run: dotnet nuget update source gitea --username ${{ secrets.READ_NUGET_USER }} --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
|
||||
- name: Add Nuget Credentials
|
||||
# run: dotnet nuget update source gitea --username sxhundred --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
|
||||
run: dotnet nuget update source gitea --username ${{ secrets.READ_NUGET_USER }} --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
|
||||
|
||||
|
||||
- name: Install GitVersion
|
||||
@@ -36,24 +36,24 @@ jobs:
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
|
||||
# # restore
|
||||
# - name: Restore dependencies
|
||||
# run: dotnet restore "PackageTest.sln"
|
||||
# restore
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore "PackageTest.sln"
|
||||
|
||||
# # SimplePackage
|
||||
# - name: Build SimplePackage
|
||||
# run: dotnet build "SimplePackage/SimplePackage.csproj" --no-restore -c Debug /property:Version=${{ env.GitVersion_SemVer }}
|
||||
# - name: Pack SimplePackage
|
||||
# run: dotnet pack "SimplePackage/SimplePackage.csproj" --no-restore -c Debug /property:Version=${{ env.GitVersion_SemVer }}
|
||||
# SimplePackage
|
||||
- name: Build SimplePackage
|
||||
run: dotnet build "SimplePackage/SimplePackage.csproj" --no-restore -c Debug /property:Version=${{ env.GitVersion_SemVer }}
|
||||
- name: Pack SimplePackage
|
||||
run: dotnet pack "SimplePackage/SimplePackage.csproj" --no-restore -c Debug /property:Version=${{ env.GitVersion_SemVer }}
|
||||
|
||||
# - name: Upload Artifact SimplePackage
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: nupkg_SimplePackage
|
||||
# path: SimplePackage/bin/Debug/*.*nupkg
|
||||
- name: Upload Artifact SimplePackage
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nupkg_SimplePackage
|
||||
path: SimplePackage/bin/Debug/*.*nupkg
|
||||
|
||||
# - name: Publish Develop SimplePackage
|
||||
# run: dotnet nuget push SimplePackage/bin/Debug/*.nupkg --api-key ${{ secrets.READ_NUGET_PAT }} --no-symbols
|
||||
- name: Publish Develop SimplePackage
|
||||
run: dotnet nuget push SimplePackage/bin/Debug/*.nupkg --api-key ${{ secrets.READ_NUGET_PAT }} --no-symbols
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v2
|
||||
|
||||
Reference in New Issue
Block a user