Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Update README.md

Update README.md #30

Workflow file for this run

name: .NET
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Singapore"
timezoneMacos: "Asia/Singapore"
timezoneWindows: "Singapore Standard Time"
- uses: actions/checkout@v3
- name: Setup net6.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup netcoreapp3.1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build 6
run: dotnet build --no-restore --configuration Debug
- name: Test 6
run: dotnet test Community.Data.OData.Linq.xTests --no-build --verbosity normal --configuration Debug
- name: Build 3.1
run: dotnet build --no-restore --configuration Debug
- name: Test 3.1
run: dotnet test Community.Data.OData.Linq.xTests --no-build --verbosity normal --configuration Debug
nuget:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
needs: build
steps:
- uses: actions/checkout@v3
- name: Setup net6.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack Rc
run: dotnet pack -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:VersionPrefix=${{ github.run_number }}-rc -o \nupkgrc
if: github.ref == 'refs/heads/develop'
- name: Pack
run: dotnet pack -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:VersionPrefix=${{ github.run_number }} -o \nupkg
if: github.ref == 'refs/heads/master'
- name: Push Rc
run: dotnet nuget push \nupkgrc/*.nupkg -k ${{ secrets.ODATA_NUGET_KEY }} -s https://api.nuget.org/v3/index.json
if: github.ref == 'refs/heads/develop'
- name: Push
run: dotnet nuget push \nupkg/*.nupkg -k ${{ secrets.ODATA_NUGET_KEY }} -s https://api.nuget.org/v3/index.json
if: github.ref == 'refs/heads/master'