Skip to content

Commit 9831410

Browse files
committed
basic ci
1 parent 16f708f commit 9831410

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/dotnet.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ jobs:
5656
run: dotnet build --no-restore -c Release
5757
- name: Test
5858
run: dotnet test --no-build --verbosity normal
59-
- name: Upload artifact
60-
uses: actions/upload-artifact@v3
61-
with:
62-
name: release-buid
63-
path: |
64-
./jjm-one_jjm.one.Serilog.Extensions.Logging.Helpers/bin/Release/*.nupkg
65-
retention-days: 1
59+
#- name: Upload artifact
60+
# uses: actions/upload-artifact@v3
61+
# with:
62+
# name: release-buid
63+
# path: |
64+
# ./jjm-one_jjm.one.Serilog.Extensions.Logging.Helpers/bin/Release/*.nupkg
65+
# retention-days: 1
6666

6767
sonarcloud:
6868
name: Build and analyze with SonarCloud
@@ -111,35 +111,35 @@ jobs:
111111
dotnet build --no-restore
112112
.\..\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
113113
114-
publish-nuget:
115-
name: Publish the NuGet package
116-
needs: [build-and-test-debug, build-and-test-release, sonarcloud, publish-doc]
117-
#if: github.ref_type == 'tag' && startsWith(github.event.ref, 'refs/tags/version-')
118-
runs-on: ubuntu-latest
119-
steps:
120-
- name: Download a single artifact
121-
uses: actions/download-artifact@v3
122-
with:
123-
name: release-buid
124-
- name: Setup dotNET
125-
uses: actions/setup-dotnet@v3
126-
with:
127-
dotnet-version: 7.x
128-
- name: Publish the package to nuget.org
129-
run: |
130-
ls -la
131-
#run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
132-
#env:
133-
# NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
114+
#publish-nuget:
115+
# name: Publish the NuGet package
116+
# needs: [build-and-test-debug, build-and-test-release, sonarcloud, publish-doc]
117+
# if: github.ref_type == 'tag' && startsWith(github.event.ref, 'refs/tags/version-')
118+
# runs-on: ubuntu-latest
119+
# steps:
120+
# - name: Download a single artifact
121+
# uses: actions/download-artifact@v3
122+
# with:
123+
# name: release-buid
124+
# - name: Setup dotNET
125+
# uses: actions/setup-dotnet@v3
126+
# with:
127+
# dotnet-version: 7.x
128+
# - name: Publish the package to nuget.org
129+
# run: |
130+
# ls -la
131+
# #run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
132+
# #env:
133+
# # NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
134134

135-
publish-doc:
136-
name: Publish Documentation
137-
needs: [build-and-test-debug]
138-
runs-on: ubuntu-latest
139-
steps:
140-
- uses: actions/checkout@v3
141-
- name: Deploy documentation
142-
run: echo "Deploy documentation"
135+
#publish-doc:
136+
# name: Publish Documentation
137+
# needs: [build-and-test-debug]
138+
# runs-on: ubuntu-latest
139+
# steps:
140+
# - uses: actions/checkout@v3
141+
# - name: Deploy documentation
142+
# run: echo "Deploy documentation"
143143

144144

145145

0 commit comments

Comments
 (0)