1- name : Release
1+ name : Release - build and store artifacts
22on :
3+ workflow_dispatch :
34 push :
45 tags :
56 - ' [0-9]+.[0-9]+.[0-9]+'
@@ -10,7 +11,7 @@ defaults:
1011 run :
1112 shell : pwsh
1213jobs :
13- release :
14+ build-and-store-artifacts :
1415 runs-on : ubuntu-latest
1516 steps :
1617 - name : Checkout
@@ -24,20 +25,19 @@ jobs:
2425 - name : Build
2526 run : dotnet build src --configuration Release
2627 - name : Sign NuGet packages
27- uses : Particular/sign-nuget-packages-action@v1.0.0
28+ uses : Particular/sign-nuget-packages-action@main
2829 with :
29- client-id : ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }}
30- tenant-id : ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }}
31- client-secret : ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }}
32- certificate-name : ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }}
33- - name : Publish artifacts
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
3435 uses : actions/upload-artifact@v7.0.2
3536 with :
3637 name : nugets
3738 path : nugets/*
3839 retention-days : 1
39- - name : Deploy
40- # Does not follow standard practice of targeting explicit versions because configuration is tightly coupled to Octopus Deploy configuration
41- uses : Particular/push-octopus-package-action@main
40+ - name : Create draft release and attach artifacts
41+ uses : particular/deployment-workflows/.github/actions/create-draft-release-with-assets@1.0.0
4242 with :
43- octopus-deploy-api-key : ${{ secrets.OCTOPUS_DEPLOY_API_KEY }}
43+ asset-paths : " nugets/ "
0 commit comments