diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 9e54ae1..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: Build -on: - workflow_dispatch: - push: - branches: - - main - - beta - - release/* - tags: - - v* -permissions: write-all -jobs: - build: - uses: LayeredCraft/devops-templates/.github/workflows/package-build.yaml@v7.6 - with: - hasTests: true - dotnet-version: | - 8.0.x - 9.0.x - 10.0.x - 11.0.x - secrets: inherit diff --git a/.github/workflows/publish-preview.yaml b/.github/workflows/publish-preview.yaml new file mode 100644 index 0000000..d16b2b0 --- /dev/null +++ b/.github/workflows/publish-preview.yaml @@ -0,0 +1,23 @@ +name: Publish Preview + +on: + workflow_dispatch: + push: + branches: + - main + +permissions: write-all + +jobs: + publish: + uses: LayeredCraft/devops-templates/.github/workflows/publish-preview.yml@main + with: + solution: LayeredCraft.StructuredLogging.slnx + packageId: LayeredCraft.StructuredLogging + hasTests: true + dotnetVersion: | + 8.0.x + 9.0.x + 10.0.x + 11.0.x + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml new file mode 100644 index 0000000..6c81582 --- /dev/null +++ b/.github/workflows/publish-release.yaml @@ -0,0 +1,22 @@ +name: Publish Release + +on: + push: + tags: + - v* + +permissions: write-all + +jobs: + publish: + uses: LayeredCraft/devops-templates/.github/workflows/publish-release.yml@main + with: + solution: LayeredCraft.StructuredLogging.slnx + packageId: LayeredCraft.StructuredLogging + hasTests: true + dotnetVersion: | + 8.0.x + 9.0.x + 10.0.x + 11.0.x + secrets: inherit \ No newline at end of file diff --git a/LayeredCraft.StructuredLogging.slnx b/LayeredCraft.StructuredLogging.slnx index 8088d4d..1a232ab 100644 --- a/LayeredCraft.StructuredLogging.slnx +++ b/LayeredCraft.StructuredLogging.slnx @@ -1,13 +1,15 @@ - + + + diff --git a/eng/package-versioning.json b/eng/package-versioning.json new file mode 100644 index 0000000..f99acc3 --- /dev/null +++ b/eng/package-versioning.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://raw.githubusercontent.com/LayeredCraft/devops-templates/main/eng/package-versioning.schema.json", + "packages": { + "LayeredCraft.StructuredLogging": { + "strategy": "single", + "defaultVersionPrefix": "0.0.1" + } + } +} \ No newline at end of file