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
95 changes: 95 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
commitish: main

version-resolver:
major:
labels:
- 'breaking-change'
minor:
labels:
- 'type: feat'
patch:
labels:
- 'type: fix'
- 'type: docs'
- 'type: refactor'
- 'type: test'
- 'type: chore'
- 'type: ci'
- 'type: revert'
default: patch

autolabeler:
- label: 'type: feat'
title:
- '/^feat(\(.+\))?(!)?:/i'
- label: 'type: fix'
title:
- '/^fix(\(.+\))?(!)?:/i'
- label: 'type: docs'
title:
- '/^docs(\(.+\))?(!)?:/i'
- label: 'type: refactor'
title:
- '/^refactor(\(.+\))?(!)?:/i'
- label: 'type: test'
title:
- '/^test(\(.+\))?(!)?:/i'
- label: 'type: chore'
title:
- '/^chore(\(.+\))?(!)?:/i'
- label: 'type: ci'
title:
- '/^ci(\(.+\))?(!)?:/i'
- label: 'type: revert'
title:
- '/^revert(\(.+\))?(!)?:/i'
- label: 'breaking-change'
title:
- '/^(feat|fix|docs|refactor|test|chore|ci|revert)(\([^)]*\))?!:/i'

categories:
- title: '⚠️ Breaking Changes'
labels:
- 'breaking-change'
- title: '🚀 Features'
labels:
- 'type: feat'
- title: '🐛 Bug Fixes'
labels:
- 'type: fix'
- title: '📚 Documentation'
labels:
- 'type: docs'
- title: '🔄 Refactoring'
labels:
- 'type: refactor'
- title: '✅ Tests'
labels:
- 'type: test'
- title: '🔧 Maintenance'
labels:
- 'type: chore'
- 'type: ci'
- 'type: revert'

include-labels:
- 'type: feat'
- 'type: fix'
- 'type: docs'
- 'type: refactor'
- 'type: test'
- 'type: chore'
- 'type: ci'
- 'type: revert'
- 'breaking-change'

exclude-labels:
- 'skip-changelog'
- 'internal'

template: |
## Changes

$CHANGES
27 changes: 0 additions & 27 deletions .github/workflows/build.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/pr-title-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: PR Title Check

on:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions:
pull-requests: read
statuses: write

jobs:
validate:
uses: LayeredCraft/devops-templates/.github/workflows/pr-title-check.yml@v10.2
40 changes: 40 additions & 0 deletions .github/workflows/publish-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Preview

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README.md'
- 'mkdocs.yml'
- 'pyproject.toml'
- 'uv.lock'

permissions:
contents: write
pull-requests: write

jobs:
build:
uses: LayeredCraft/devops-templates/.github/workflows/publish-preview.yml@v10.2
with:
solution: LayeredCraft.Lambda.AspNetCore.HostingExtensions.slnx
dotnetVersion: |
8.0.x
9.0.x
10.0.x
hasTests: true
secrets: inherit

push:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: LayeredCraft/devops-templates/.github/actions/nuget-push@v10.2
with:
nuget_user: ${{ secrets.NUGET_USER }}
31 changes: 31 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Release

on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
uses: LayeredCraft/devops-templates/.github/workflows/publish-release.yml@v10.2
with:
solution: LayeredCraft.Lambda.AspNetCore.HostingExtensions.slnx
dotnetVersion: |
8.0.x
9.0.x
10.0.x
hasTests: true
secrets: inherit

push:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: LayeredCraft/devops-templates/.github/actions/nuget-push@v10.2
with:
nuget_user: ${{ secrets.NUGET_USER }}
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
draft:
uses: LayeredCraft/devops-templates/.github/workflows/release-drafter.yml@v10.2
with:
event_name: ${{ github.event_name }}
pr_draft: ${{ github.event.pull_request.draft == true }}
6 changes: 5 additions & 1 deletion LayeredCraft.Lambda.AspNetCore.HostingExtensions.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
</Folder>
<Folder Name="/git/">
<File Path=".github/dependabot.yml" />
<File Path=".github/release-drafter.yml" />
<File Path=".github/workflows/dependabot-auto-merge.yml" />
<File Path=".github/workflows/build.yaml" />
<File Path=".github/workflows/docs.yml" />
<File Path=".github/workflows/pr-build.yaml" />
<File Path=".github/workflows/pr-title-check.yaml" />
<File Path=".github/workflows/publish-preview.yaml" />
<File Path=".github/workflows/publish-release.yaml" />
<File Path=".github/workflows/release-drafter.yaml" />
<File Path=".gitignore" />
</Folder>
<Folder Name="/Solution Items/">
Expand Down
Loading