Skip to content

Commit

Permalink
fix: Included build information for the package in the build pipeline (
Browse files Browse the repository at this point in the history
  • Loading branch information
slewis74 authored Jul 21, 2022
1 parent de7a610 commit b4663f0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUS_APIKEY }}
OCTOPUS_HOST: ${{ secrets.OCTOPUS_SERVER }}
OCTOPUS_SPACE: Integrations

steps:
- name: Checkout Code
Expand All @@ -33,7 +34,7 @@ jobs:
fetch-depth: '0'

- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
Expand Down Expand Up @@ -78,14 +79,19 @@ jobs:
env:
OCTOPUS_LICENSE: ${{ secrets.OCTOPUS_LICENSE }}
OCTOPUS_SDK_AT_USE_EXISTING_SERVER: false

- name: Push build information 🐙
uses: OctopusDeploy/push-build-information-action@v1
with:
packages: 'Octopus.TeamCity'
version: ${{ steps.git-version.outputs.nugetVersion }}

- name: Install Octopus CLI 🐙
uses: OctopusDeploy/install-octopus-cli-action@v1

- name: Push a package to Octopus Deploy 🐙
uses: OctopusDeploy/push-package-action@v2
with:
space: 'Integrations'
packages: '${{ steps.create-package.outputs.package-created }}'

- name: Fetch Release Notes
Expand All @@ -100,7 +106,6 @@ jobs:
- name: Create a release in Octopus Deploy 🐙
uses: OctopusDeploy/create-release-action@v2
with:
space: 'Integrations'
project: 'TeamCity Plugin'
package_version: ${{ steps.git-version.outputs.nugetVersion }}
release_notes_file: ${{ steps.fetch-release-notes.outputs.release-note-file }}

0 comments on commit b4663f0

Please sign in to comment.