Skip to content

Commit

Permalink
Changelog moved and pipeline updated
Browse files Browse the repository at this point in the history
  • Loading branch information
XFox111 committed May 29, 2021
1 parent 6cd12eb commit 8101d5e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ Fixes:
- Item 3

## PR Checklist
- [ ] Update package version
- [ ] Update CHANGELOG.md
- [ ] Update package version and release notes
- [ ] Tests and documentation
11 changes: 0 additions & 11 deletions CHANGELOG.md

This file was deleted.

11 changes: 11 additions & 0 deletions SimpleOTP/SimpleOTP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
<RepositoryUrl>https://github.com/XFox111/SimpleOTP</RepositoryUrl>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageTags>otp;totp;dotnet;hotp;authenticator;2fa;mfa;security;oath</PackageTags>
<PackageReleaseNotes>.NET library for TOTP/HOTP implementation on server (ASP.NET) or client (Xamarin) side

Features
- Generate and validate OTP codes
- Support of TOTP (RFC 6238) and HOTP (RFC 4226) algorithms
- Support of HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512 hashing algorithms
- Setup URI parser
- Database-ready configuration models
- Configuration generator for server-side implementation
- QR code generator
- No dependencies</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
15 changes: 12 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trigger:
- master
paths:
include:
- CHANGELOG.md
- SimpleOTP/**

pool:
vmImage: 'windows-latest'
Expand Down Expand Up @@ -50,8 +50,17 @@ steps:
searchFolder: '$(System.DefaultWorkingDirectory)'
codeCoverageEnabled: true

- task: PowerShell@2
displayName: 'Copy changelog'
inputs:
targetType: 'inline'
script: |
New-Item $(Build.ArtifactStagingDirectory)\Changelog.md
(Select-Xml -Path SimpleOTP.csproj -XPath /Project/PropertyGroup/PackageReleaseNotes | Select-Object -ExpandProperty Node).InnerText | Set-Content $(Build.ArtifactStagingDirectory)\changelog.md -Encoding UTF8
workingDirectory: '$(Build.SourcesDirectory)\SimpleOTP'

- task: CopyFiles@2
displayName: 'Copy file to staging'
displayName: 'Copy package to staging'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: '**/Release/**/*.nupkg'
Expand All @@ -63,4 +72,4 @@ steps:
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Artifacts'
publishLocation: 'Container'
publishLocation: 'Container'

0 comments on commit 8101d5e

Please sign in to comment.