-
Notifications
You must be signed in to change notification settings - Fork 19
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
248 changed files
with
24,371 additions
and
590 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Nuget client Continuous integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
- 'netcore' | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '!main' | ||
jobs: | ||
build_test_pack: | ||
name: Build, test & pack | ||
runs-on: windows-latest | ||
env: | ||
buildConfiguration: release | ||
versionSuffix: ${{ github.ref == 'refs/heads/develop' && '-pre-' || '-ci-' }}${{github.RUN_NUMBER }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
- name: Set up Node.js ⚙️ | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
- name: Setup .NET Core @ Latest | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | ||
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Restore | ||
run: dotnet restore PowerSlice.sln --configfile Nuget.config | ||
- name: Build (Release version) | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: dotnet build --no-restore --configuration $env:buildConfiguration | ||
- name: Build (Pre-Release version) | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
run: dotnet build --no-restore --configuration $env:buildConfiguration --version-suffix $env:versionSuffix | ||
- name: Test | ||
run: dotnet test --no-build --configuration $env:buildConfiguration | ||
- name: Pack (Release version) | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
./build/pack.ps1 | ||
- name: Pack (Pre-Release version) | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
run: | | ||
./build/pack.ps1 -versionSuffix $env:versionSuffix | ||
- name: Publish packages | ||
run: dotnet nuget push artifacts/**/*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="Optimizely feed" value="https://nuget.optimizely.com/feed/packages.svc/" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.