fix: consolidated id generation #5
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: Build and Test | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "src/Transmitly.TemplateEngine.Fluid/**" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: dotnet | |
uses: actions/setup-dotnet@v3 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/setup@v0 | |
with: | |
versionSpec: '5.x' | |
- name: Determine Version | |
uses: gittools/actions/gitversion/execute@v0 | |
- name: Add test source | |
run: dotnet nuget add source https://apiint.nugettest.org/v3/index.json --name NugetTest | |
- name: Build netcore solution | |
run: dotnet build Transmitly.TemplateEngine.Fluid.sln --configuration Release -p:AssemblyVersion=${{ env.assemblySemVer }} -p:FileVersion=${{ env.assemblySemFileVer }} -p:InformationalVersion=${{ env.informationalVersion }} | |
#- name: Test | |
# run: dotnet test --no-build --no-restore --configuration Release Transmitly.sln | |
- name: Package | |
run: dotnet pack --no-build --include-source /p:Version=${{ env.majorMinorPatch }}-alpha-${{env.buildMetaData}}.${{ env.shortSha }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
- name: Publish (INT) | |
run: dotnet nuget push src\Transmitly.TemplateEngine.Fluid\bin\Release\Transmitly.TemplateEngine.Fluid*.nupkg -s "NugetTest" -k ${{ secrets.NUGET_INT_API_KEY }} | |
- name: Add github source | |
run: dotnet nuget add source --username ${{ secrets.PUBLISH_GITHUB_USERNAME }} --password ${{ secrets.PUBLISH_GITHUB_PACKAGE_API_KEY }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/transmitly/index.json" | |
- name: Publish (Github) | |
run: dotnet nuget push src\Transmitly.TemplateEngine.Fluid\bin\Release\Transmitly.TemplateEngine.Fluid*.nupkg --api-key ${{secrets.PUBLISH_GITHUB_PACKAGE_API_KEY}} --source "github" | |