Skip to content

Commit 56803c6

Browse files
Apply repository updates to release-5.1
1 parent 1bc71dd commit 56803c6

7 files changed

Lines changed: 146 additions & 43 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release - build and store artifacts
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
- '[0-9]+.[0-9]+.[0-9]+-*'
8+
env:
9+
DOTNET_NOLOGO: true
10+
defaults:
11+
run:
12+
shell: pwsh
13+
jobs:
14+
build-and-store-artifacts:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v7.0.1
19+
with:
20+
fetch-depth: 0
21+
- name: Setup .NET SDK
22+
uses: actions/setup-dotnet@v6.0.0
23+
with:
24+
global-json-file: global.json
25+
- name: Build
26+
run: dotnet build src --configuration Release
27+
- name: Sign NuGet packages
28+
uses: Particular/sign-nuget-packages-action@main
29+
with:
30+
client-id: ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }}
31+
tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
32+
client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
33+
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
34+
- name: Publish NuGet packages to the workflow
35+
uses: actions/upload-artifact@v7.0.2
36+
with:
37+
name: nugets
38+
path: nugets/*
39+
retention-days: 1
40+
- name: Create draft release and attach artifacts
41+
uses: particular/deployment-workflows/.github/actions/create-draft-release-with-assets@1.0.0
42+
with:
43+
asset-paths: "nugets/"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Production
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
required: true
7+
type: string
8+
env:
9+
DOTNET_NOLOGO: true
10+
jobs:
11+
check-authorized-user:
12+
uses: Particular/deployment-workflows/.github/workflows/verify-authorized-user.yml@1.0.0
13+
publish-release-notes:
14+
needs: check-authorized-user
15+
uses: Particular/deployment-workflows/.github/workflows/publish-release-notes.yml@1.0.0
16+
with:
17+
version: ${{ inputs.version }}
18+
secrets: inherit
19+
virus-scan:
20+
needs: publish-release-notes
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
steps:
25+
- name: Scan release for viruses
26+
uses: Particular/virus-scan-action@main
27+
with:
28+
owner: ${{ github.repository_owner }}
29+
repo: ${{ github.event.repository.name }}
30+
tag: ${{ inputs.version }}
31+
github-access-token: ${{ secrets.GITHUB_TOKEN }}
32+
slack-token: ${{ secrets.SLACK_TOKEN }}
33+
slack-channel: ${{ vars.VIRUS_REPORTING_SLACK_CHANNEL }}
34+
push-nuget-packages:
35+
permissions:
36+
id-token: write
37+
contents: read
38+
runs-on: ubuntu-latest
39+
needs: publish-release-notes
40+
steps:
41+
- name: Push NuGet packages
42+
uses: particular/deployment-workflows/.github/actions/push-nuget-packages@1.0.0
43+
with:
44+
version: ${{ inputs.version }}
45+
deploy-environment: production
46+
api-key: required-but-real-value-not-needed-we-use-trusted-publishing-for-production
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Staging
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
required: true
7+
type: string
8+
env:
9+
DOTNET_NOLOGO: true
10+
jobs:
11+
check-authorized-user:
12+
uses: Particular/deployment-workflows/.github/workflows/verify-authorized-user.yml@1.0.0
13+
push-nuget-packages-staging:
14+
needs: check-authorized-user
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: write
19+
steps:
20+
- name: Push NuGet packages
21+
uses: Particular/deployment-workflows/.github/actions/push-nuget-packages@1.0.0
22+
with:
23+
version: ${{ inputs.version }}
24+
deploy-environment: staging
25+
api-key: ${{ secrets.FEEDZIO_PUBLISH_API_KEY }}
26+
generate-release-notes:
27+
needs: check-authorized-user
28+
uses: Particular/deployment-workflows/.github/workflows/generate-release-notes.yml@1.0.0
29+
with:
30+
version: ${{ inputs.version }}
31+
secrets: inherit

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{ if config.create.include_footer }}
2+
3+
### Where to get it
4+
5+
<!-- TODO change the link for the apps that don't go to NuGet -->
6+
You can download this release from [NuGet](https://www.nuget.org/profiles/ParticularSoftware/).
7+
8+
{{ end }}
9+
10+
<!-- RELEASE NOTES GENERATED -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{
2+
if issue.is_pull_request
3+
}}- [__#{{ issue.public_number }}__]({{ issue.html_url }}) {{ issue.title }}
4+
{{ else
5+
}}- [__#{{ issue.public_number }}__]({{ issue.html_url }}) {{ issue.title }}
6+
{{ end -}}

‎.release/GitReleaseManager.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
templates-dir: .templates
2+
create:
3+
include-footer: true
4+
issue-labels-include:
5+
- "Bug"
6+
- "Feature"
7+
- "Improvement"
8+
- "Dependency CVE"
9+
issue-labels-exclude:
10+
- "Refactoring"

0 commit comments

Comments
 (0)