Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/build.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/publish-preview.yaml
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reference reusable workflow from a resolvable ref

This workflow now depends on LayeredCraft/devops-templates/...@main, so every publish run will fail with β€œworkflow was not found” whenever main does not yet contain publish-preview.yml/publish-release.yml (the current state that this PR itself calls out as an external dependency). Because this repo no longer has a fallback build/publish workflow, that makes main pushes and release tags non-runnable until the upstream branch state matches; pinning to a released tag/SHA that already contains these files avoids that breakage.

Useful? React with πŸ‘Β / πŸ‘Ž.

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
22 changes: 22 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion LayeredCraft.StructuredLogging.slnx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<Solution>
<Folder Name="/git/">
<File Path=".github/dependabot.yml" />
<File Path=".github/workflows/build.yaml" />
<File Path=".github/workflows/pr-build.yaml" />
<File Path=".github/workflows/publish-preview.yaml" />
<File Path=".github/workflows/publish-release.yaml" />
<File Path=".gitignore" />
</Folder>
<Folder Name="/Solution Items/">
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
<File Path="eng/package-versioning.json" />
<File Path="global.json" />
<File Path="README.md" />
</Folder>
Expand Down
9 changes: 9 additions & 0 deletions eng/package-versioning.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
Loading