Skip to content

Commit a96308d

Browse files
authored
do releases using net6.0
first and last time
1 parent 2cb6baa commit a96308d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,29 +84,29 @@ jobs:
8484
dotnet pack -c Release --version-suffix "ts.$(Get-Date -Format 'yyyyMMddHHmm')" -o ${{ env.NuGetDirectory }}
8585
if: |
8686
success() && github.ref == 'refs/heads/main'
87-
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
87+
&& matrix.version.target == 'net6.0' && matrix.os == 'windows-latest'
8888
&& github.event_name != 'release'
8989
- name: Pack NuGet packages (release)
9090
shell: pwsh
9191
run: |
9292
dotnet pack -c Release -o ./nupkg_out
9393
if: |
9494
success() && github.ref == 'refs/heads/main'
95-
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
95+
&& matrix.version.target == 'net6.0' && matrix.os == 'windows-latest'
9696
&& github.event_name == 'release'
9797
- name: Publish NuGet packages (GH/always)
9898
shell: pwsh
9999
run: |
100100
dotnet nuget push '${{ env.NuGetDirectory }}\*.nupkg' --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --no-symbols
101101
if: |
102102
success() && github.ref == 'refs/heads/main'
103-
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
103+
&& matrix.version.target == 'net6.0' && matrix.os == 'windows-latest'
104104
- name: Publish NuGet packages (NuGet.org/release)
105105
shell: pwsh
106106
run: |
107107
dotnet pack -c Release --version-suffix "ts.$(Get-Date -Format 'yyyyMMddHHmm')" -o ./nupkg_out
108108
dotnet nuget push '${{ env.NuGetDirectory }}\*.nupkg' --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
109109
if: |
110110
success() && github.ref == 'refs/heads/main'
111-
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
111+
&& matrix.version.target == 'net6.0' && matrix.os == 'windows-latest'
112112
&& github.event_name == 'release'

0 commit comments

Comments
 (0)