1+ # For a detailed breakdown of this workflow, see https://octopus.com/docs/guides/deploy-aspnetcore-app/to-iis/using-octopus-onprem-github-builtin
2+ #
13# The following workflow provides an opinionated template you can customize for your own needs.
24#
35# If you are not an Octopus user, the "Push to Octopus", "Generate Octopus Deploy build information",
1113#
1214# Get a trial Octopus instance from https://octopus.com/start
1315
16+ name : DotNET Core Build
17+ ' on ' :
18+ workflow_dispatch : {}
19+ push : {}
1420jobs :
1521 build :
1622 runs-on : ubuntu-latest
@@ -141,19 +147,19 @@ jobs:
141147 draft : ' false'
142148 prerelease : ' false'
143149 target_commitish : ${{ github.sha }}
144- - env :
150+ - name : Push packages to Octopus Deploy
151+ uses : OctopusDeploy/push-package-action@v2
152+ env :
145153 OCTOPUS_API_KEY : ${{ secrets.OCTOPUS_API_TOKEN }}
146154 OCTOPUS_HOST : ${{ secrets.OCTOPUS_SERVER_URL }}
147- name : Push packages to Octopus Deploy
148- uses : OctopusDeploy/push-package-action@v2
149155 with :
150156 packages : ${{ steps.package.outputs.artifacts }}
151157 overwrite_mode : OverwriteExisting
152- - env :
158+ - name : Generate Octopus Deploy build information
159+ uses : OctopusDeploy/push-build-information-action@v1
160+ env :
153161 OCTOPUS_API_KEY : ${{ secrets.OCTOPUS_API_TOKEN }}
154162 OCTOPUS_HOST : ${{ secrets.OCTOPUS_SERVER_URL }}
155- name : Generate Octopus Deploy build information
156- uses : OctopusDeploy/push-build-information-action@v1
157163 with :
158164 version : ${{ steps.determine_version.outputs.semVer }}
159165 packages : RandomQuotes
@@ -166,7 +172,3 @@ jobs:
166172 server : ${{ secrets.OCTOPUS_SERVER_URL }}
167173 deploy_to : Development
168174 packages : ${{ steps.package.outputs.versions_new_line }}
169- name : DotNET Core Build
170- ' on ' :
171- workflow_dispatch : {}
172- push : {}
0 commit comments