added version in log #118
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: | |
- master | |
paths: | |
- '.github/workflows/ContinuousIntegration.yml' | |
- 'source/DefaultDocumentation/**' | |
- 'source/DefaultDocumentation.Api/**' | |
- 'source/DefaultDocumentation.Common/**' | |
- 'source/DefaultDocumentation.Console/**' | |
- 'source/DefaultDocumentation.Markdown/**' | |
jobs: | |
continuous_integration: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
source-url: https://nuget.pkg.github.com/Doraku/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: dotnet build source -c Release -p:TreatWarningsAsErrors=true | |
- name: Run tests | |
run: dotnet test source -c Release --no-build | |
- name: Decrypte snk file | |
env: | |
SNK_KEY: ${{ secrets.SNK_KEY }} | |
run: gpg --quiet --batch --yes --decrypt --passphrase="$env:SNK_KEY" --output ds.snk ds.snk.gpg | |
- name: Create package | |
run: dotnet pack source -c Release -o build /p:Version=0-ci$(date +'%Y%m%d%H%M%S') /p:SignAssembly=true | |
- name: Publish packages | |
run: dotnet nuget push build\*.nupkg |