Skip to content

Array syntax test case. #10

Array syntax test case.

Array syntax test case. #10

name: Publish Prerelease NuGets
on:
push:
branches:
- prerelease
env:
TIMESTAMP: $(date +'%s')
SOLUTION: Rougamo.sln
jobs:
publish:
name: Build and Publish
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Remove Tests
run: dotnet sln ${{ env.SOLUTION }} remove (ls -r test/**/*.csproj)
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Build Solution
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }} --version-suffix priview-${{ env.TIMESTAMP }}
- name: Delete exists packages
run: rm -r -fo nugets
- name: Pack Solution
run: dotnet pack ${{ env.SOLUTION }} --configuration Release --no-build --version-suffix priview-${{ env.TIMESTAMP }}
- name: Publish
run: dotnet nuget push nugets/**.nupkg -k ${{ secrets.API_KEY }} -s https://api.nuget.org/v3/index.json