Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Feb 14, 2024
1 parent 4756f5c commit 0abd494
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
with:
name: packages
path: packages
- name: Initialize NuGet local cache
run: dotnet restore
- name: Install packages to local NuGet repository
working-directory: packages
run: |
dotnet restore
dotnet nuget push *.nupkg --source ~/.nuget/packages
if: runner.os == 'macOS' || runner.os == 'Linux'
shell: bash
- name: Install packages to local NuGet repository
working-directory: packages
run: |
dotnet restore
dotnet nuget push *.nupkg --source $env:USERPROFILE/.nuget/packages
if: runner.os == 'Windows'
shell: powershell
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
needs: build-packages
steps:
- uses: actions/checkout@v3
- name: Download packages artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -114,19 +115,21 @@ jobs:
- name: Install packages to local NuGet repository
working-directory: packages
run: |
mkdir -p ~/.nuget/packages
dotnet restore
dotnet nuget push *.nupkg --source ~/.nuget/packages
if: runner.os == 'macOS' || runner.os == 'Linux'
shell: bash
- name: Install packages to local NuGet repository
working-directory: packages
run: |
New-Item -ItemType Directory -Path $env:USERPROFILE/.nuget/packages
dotnet restore
dotnet nuget push *.nupkg --source $env:USERPROFILE/.nuget/packages
if: runner.os == 'Windows'
shell: powershell
- name: Set version from tag
run: echo "VERSION=$($env:GITHUB_REF.TrimStart('refs/tags/v'))" >> $env:GITHUB_ENV
run:
version=$env:GITHUB_REF.TrimStart('refs/tags/v')
echo "VERSION=$($env:GITHUB_REF.TrimStart('refs/tags/v'))" >> $env:GITHUB_ENV
- name: 🔨 Build Examples
run: |
for solution in examples/*/*/*.sln; do dotnet build "$solution"; done
Expand Down

0 comments on commit 0abd494

Please sign in to comment.