-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.42 KB
/
Copy pathexample-release.yml
File metadata and controls
53 lines (49 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: example-release
on:
push:
branches:
- main
# would normally filter to only paths that actually want to release for
# paths:
# - "src/**"
workflow_dispatch: # 👈 manual trigger here to release
inputs:
force-release:
description: "Force a release regardless of PR labels or branch"
type: boolean
required: false
default: false
permissions:
contents: write
packages: write
pull-requests: read
jobs:
dotnet-package:
permissions:
contents: write
packages: write
pull-requests: read
uses: ./.github/workflows/dotnet-package-release.yml
with:
working-directory: "./examples/NugetPackages"
os: ubuntu-latest
dotnet-version: 10.0.x
codecov-name: "example-dotnet-package"
is-release-branch: false
# is-release-branch: ${{ github.ref == 'refs/heads/main' }}
force-release: ${{ github.event.inputs.force-release == 'true' }}
secrets: inherit
# TODO: docker / aws lambda / other release build step
# dotnet-minimal-web-api:
# permissions:
# actions: read
# contents: read
# pull-requests: write
# security-events: write
# uses: ./.github/workflows/dotnet-pr.yml
# with:
# working-directory: "./examples/MinimalWebApi"
# os: "ubuntu-latest"
# dotnet-version: "10.0.x"
# codecov-name: "example-minimal-web-api"
# secrets: inherit