Skip to content

Commit

Permalink
Finalize stable release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
coloursofnoise committed Nov 10, 2021
1 parent 90006e7 commit ee57800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
11 changes: 8 additions & 3 deletions azure-pipelines-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pool:
vmImage: 'ubuntu-latest'

# Only run when main build pipeline completes, and only for main branch builds
# Only run when main build pipeline completes, and only for stable branch builds
trigger: none
resources:
pipelines:
Expand All @@ -10,7 +10,7 @@ resources:
trigger:
branches:
include:
- dev
- stable

steps:
# Download artifacts from build pipeline
Expand Down Expand Up @@ -51,4 +51,9 @@ steps:
$(Build.ArtifactStagingDirectory)/olympus-meta.zip
$(Build.ArtifactStagingDirectory)/olympus-build.zip
$(Build.ArtifactStagingDirectory)/lib-stripped.zip
isDraft: true
# Announce new stable versions on Discord (#modding_updates).
- script: |
curl -H "Content-Type: application/json" -d "{\"content\": \"**A new Everest stable was just released!**\nThe latest stable version is now **$(build_number)**.\"}" $(WEBHOOK_URL)
displayName: 'Celeste Discord webhook'
condition: succeeded()
7 changes: 0 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,3 @@ steps:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/lib-stripped/build/'
artifactName: 'lib-stripped'
publishLocation: 'Container'

# Announce new stable versions on Discord (#modding_updates).
- script: |
declare -i BUILD_NUMBER=$(Build.BuildId)+$(Build.BuildIdOffset)
curl -H "Content-Type: application/json" -d "{\"content\": \"**A new Everest stable was just released!**\nThe latest stable version is now **$BUILD_NUMBER**.\"}" $(WEBHOOK_URL)
displayName: 'Celeste Discord webhook'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/stable'))

0 comments on commit ee57800

Please sign in to comment.