Merge pull request #21 from Dualog/enable-smb-dialects #31
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
name: Continuous Integration | |
on: | |
push: | |
branches: # This configuration does not affect the page_build event above | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- name: Setup Dotnet Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.100 | |
source-url: https://nuget.pkg.github.com/Dualog/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Setup Nuget Config | |
run: sed 's/GITHUB_TOKEN/${{ secrets.NUGET_TOKEN }}/g' .nuget.config > nuget.config | |
- name: Build packages | |
run: dotnet build -c Release /p:PublicRelease=true /p:DefineConstants=SMB302_CLIENT | |
- name: Pack packages | |
run: dotnet pack -c Release /p:PublicRelease=true /p:DefineConstants=SMB302_CLIENT | |
- name: Publish Package | |
run: dotnet nuget push ./**/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json |