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
16 changes: 6 additions & 10 deletions .github/workflows/publish-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish Preview

on:
push:
branches: [main]
branches:
- main
paths-ignore:
- 'docs/**'
- 'mkdocs.yml'
Expand All @@ -13,24 +14,20 @@ on:
workflow_dispatch:
Comment thread
j-d-ha marked this conversation as resolved.

permissions:
contents: write
pull-requests: write

concurrency:
group: publish-preview-${{ github.ref }}
cancel-in-progress: true
contents: read

jobs:
build:
permissions:
contents: write
pull-requests: write
uses: LayeredCraft/devops-templates/.github/workflows/publish-preview.yml@v10.1
with:
solution: MinimalLambda.sln
dotnetVersion: 11.0.x
prereleaseIdentifier: preview
hasTests: false
buildConfiguration: Release
artifact_name: nuget-packages
secrets: inherit

push:
needs: build
Expand All @@ -42,4 +39,3 @@ jobs:
- uses: LayeredCraft/devops-templates/.github/actions/nuget-push@v10.1
with:
nuget_user: ${{ secrets.NUGET_USER }}
artifact_name: nuget-packages
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ on:
types: [published]

permissions:
contents: write
contents: read

jobs:
build:
permissions:
contents: write
uses: LayeredCraft/devops-templates/.github/workflows/publish-release.yml@v10.1
with:
solution: MinimalLambda.sln
dotnetVersion: 11.0.x
hasTests: false
buildConfiguration: Release
secrets: inherit

push:
needs: build
Expand All @@ -27,4 +28,3 @@ jobs:
- uses: LayeredCraft/devops-templates/.github/actions/nuget-push@v10.1
with:
nuget_user: ${{ secrets.NUGET_USER }}
artifact_name: nuget-packages
Loading