Skip to content
Draft
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
18 changes: 18 additions & 0 deletions .github/workflows/release-build-and-stage-release-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build And Stage Release Artifacts
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
jobs:
build-artifacts:
uses: ./.github/workflows/release-build-artifacts.yml
secrets: inherit
stage-artifacts:
needs: build-artifacts
permissions:
contents: write
uses: ./.github/workflows/release-deploy-to-staging.yml
with:
version: ${{ github.ref_name }}
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
name: Release
name: Build Artifacts
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
workflow_call:
env:
DOTNET_NOLOGO: true
defaults:
run:
shell: pwsh
jobs:
release:
build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.1
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5.1.0
uses: actions/setup-dotnet@v6.1.0
with:
global-json-file: global.json
- name: Build
Expand All @@ -30,14 +27,13 @@ jobs:
tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
- name: Publish artifacts
uses: actions/upload-artifact@v6.0.0
- name: Upload artifacts
uses: actions/upload-artifact@v7.0.2
with:
name: nugets
path: nugets/*
retention-days: 1
- name: Deploy
# Does not follow standard practice of targeting explicit versions because configuration is tightly coupled to Octopus Deploy configuration
uses: Particular/push-octopus-package-action@main
- name: Attach artifacts to release
uses: particular/deployment-workflows/.github/actions/create-draft-release-with-assets@1.0.0
with:
octopus-deploy-api-key: ${{ secrets.OCTOPUS_DEPLOY_API_KEY }}
asset-paths: "nugets/"
38 changes: 38 additions & 0 deletions .github/workflows/release-deploy-to-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy To Production
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
env:
DOTNET_NOLOGO: true
jobs:
check-authorized-user:
uses: Particular/deployment-workflows/.github/workflows/verify-authorized-user.yml@1.0.0
publish-release-notes:
needs: check-authorized-user
uses: Particular/deployment-workflows/.github/workflows/publish-release-notes.yml@1.0.0
with:
version: ${{ inputs.version }}
secrets: inherit
virus-scan:
needs: publish-release-notes
permissions:
contents: write
uses: Particular/deployment-workflows/.github/workflows/virus-scan.yml@1.0.0
with:
version: ${{ inputs.version }}
secrets: inherit
push-nuget-packages:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
needs: publish-release-notes
steps:
- name: Push NuGet packages
uses: particular/deployment-workflows/.github/actions/push-nuget-packages@1.0.0
with:
version: ${{ inputs.version }}
deploy-environment: production
26 changes: 26 additions & 0 deletions .github/workflows/release-deploy-to-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy To Staging
on:
workflow_call:
inputs:
version:
required: true
type: string
env:
DOTNET_NOLOGO: true
jobs:
push-nuget-packages-staging:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Push NuGet packages
uses: Particular/deployment-workflows/.github/actions/push-nuget-packages@1.0.0
with:
version: ${{ inputs.version }}
deploy-environment: staging
api-key: ${{ secrets.FEEDZIO_PUBLISH_API_KEY }}
generate-release-notes:
uses: Particular/deployment-workflows/.github/workflows/generate-release-notes.yml@1.0.0
with:
version: ${{ inputs.version }}
secrets: inherit
17 changes: 0 additions & 17 deletions .github/workflows/virus-scan.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .release/.templates/default/create/footer.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if config.create.include_footer }}

### Where to get it

<!-- TODO change the link for the apps that don't go to NuGet -->
You can download this release from [NuGet](https://www.nuget.org/profiles/ParticularSoftware/).

{{ end }}

<!-- RELEASE NOTES GENERATED -->
6 changes: 6 additions & 0 deletions .release/.templates/default/issue-note.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{
if issue.is_pull_request
}}- [__#{{ issue.public_number }}__]({{ issue.html_url }}) {{ issue.title }}
{{ else
}}- [__#{{ issue.public_number }}__]({{ issue.html_url }}) {{ issue.title }}
{{ end -}}
10 changes: 10 additions & 0 deletions .release/GitReleaseManager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
templates-dir: .templates
create:
include-footer: true
issue-labels-include:
- "Bug"
- "Feature"
- "Improvement"
- "Dependency CVE"
issue-labels-exclude:
- "Refactoring"
Loading