FileService xml comments are created. #6
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: Publish ActiveDirectoryFileManagement to NuGet | |
on: | |
push: | |
branches: | |
- main # Your default release branch | |
paths: | |
- 'src/ActiveDirectoryFileManagement/**' | |
jobs: | |
publish: | |
name: Build and Publish | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.x' | |
# Restore | |
- name: Dotnet restore | |
run: dotnet restore src/ActiveDirectoryFileManagement/ActiveDirectoryFileManagement.csproj | |
# Publish | |
- name: Create the package | |
run: dotnet pack -c Release -o . src/ActiveDirectoryFileManagement/ActiveDirectoryFileManagement.csproj | |
- name: Publish to nuget.org | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: nuget push ActiveDirectoryFileManagement.*.nupkg -src https://api.nuget.org/v3/index.json ${{secrets.NUGET_API_KEY}} |