forked from dotnetcore/EasyCaching
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
123 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
- main | ||
|
||
jobs: | ||
build_artifact: | ||
build_artifact: | ||
name: Build and upload artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln | ||
- name: Pack with dotnet | ||
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln --version-suffix alpha`date +%Y%m%d%H%M%S` -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln | ||
- name: Pack with dotnet | ||
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln --version-suffix alpha`date +%Y%m%d%H%M%S` -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
|
||
release_nuget: | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
name: Release_Stable | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
push: | ||
tags: | ||
- "**" | ||
|
||
jobs: | ||
build_artifact: | ||
build_artifact: | ||
name: Build and upload artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln | ||
- name: Pack with dotnet | ||
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln | ||
- name: Pack with dotnet | ||
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln -o /home/runner/work/nugetpkgs -c Release --no-build | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: /home/runner/work/nugetpkgs | ||
|
||
release_nuget: | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done | ||
name: Release to Nuget | ||
needs: build_artifact | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nugetpkgs | ||
path: nugetpkgs | ||
- name: list nugetpkgs | ||
run: ls nugetpkgs | ||
- name: Release | ||
run: | | ||
for file in nugetpkgs/*.nupkg | ||
do | ||
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package | ||
done |