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