Skip to content

Commit

Permalink
Update workflow to main
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Mar 2, 2022
1 parent fa655ab commit e92d497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Build, test and publish

on:
push:
branches: [ master ]
branches: [ main ]
tags: [ '*' ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand Down Expand Up @@ -166,4 +166,4 @@ jobs:
tar -xf OctopusTools.$VERSION.linux-x64.tar.gz
zip OctopusTools.Zips.$VERSION.zip *.zip *.tar.gz
./octo push --space "Integrations" --package Octopus.Cli.$VERSION.nupkg --package Octopus.DotNet.Cli.$VERSION.nupkg --package OctopusTools.$VERSION.nupkg --package Octo.Docker.Image.$VERSION.tar.gz --package OctopusTools.Packages.linux-x64.$VERSION.zip --package OctopusTools.Zips.$VERSION.zip --overwrite-mode OverwriteExisting
./octo create-release --space "Integrations" --project "Octopus CLI" --packageVersion "$VERSION" --package "*:NuGet.CommandLine:4.4.1" --gitRef "${{ github.head_ref || github.ref }}" --gitCommit "${{ github.event.after || github.event.pull_request.head.sha }}"
./octo create-release --space "Integrations" --project "Octopus CLI" --packageVersion "$VERSION" --package "*:NuGet.CommandLine:4.4.1" --gitRef "${{ (github.ref_type == 'tag' && 'main' ) || (github.head_ref || github.ref) }}" --gitCommit "${{ github.event.after || github.event.pull_request.head.sha }}"

0 comments on commit e92d497

Please sign in to comment.