Skip to content

Commit

Permalink
Fixed conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Sep 25, 2024
1 parent 8960d5a commit 0ac9aed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Install Aspire workload
run: dotnet workload install aspire
- name: Setup .NET dev certs
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
Expand All @@ -86,7 +86,7 @@ jobs:

## Only publish NuGet packages on Ubuntu, since we don't need to publish them on every OS
- name: Publish NuGet packages as artifacts
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: nuget-packages
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dotnet-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
strategy:
matrix:
os: [
windows-latest
, ubuntu-latest
#, macos-latest
windows-latest,
ubuntu-latest,
#, macos-latest
]
fail-fast: false
runs-on: "${{ matrix.os }}"
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Install Aspire workload
run: dotnet workload install aspire
- name: Setup .NET dev certs
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Publish NuGet packages as artifacts
uses: actions/upload-artifact@v4
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: nuget-packages
path: ./nuget
Expand Down Expand Up @@ -147,4 +147,4 @@ jobs:
name: nuget-packages

- name: Publish to GitHub packages
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
os: [
windows-latest
, ubuntu-latest
#, macos-latest
windows-latest,
ubuntu-latest,
#, macos-latest
]
fail-fast: false
runs-on: "${{ matrix.os }}"
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install Aspire workload
run: dotnet workload install aspire
- name: Setup .NET dev certs
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Publish NuGet packages as artifacts
uses: actions/upload-artifact@v4
if: ${{ runner.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: nuget-packages
path: ./nuget
Expand Down Expand Up @@ -164,4 +164,4 @@ jobs:
name: nuget-packages

- name: Publish to GitHub packages
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0ac9aed

Please sign in to comment.