Skip to content

Commit

Permalink
[CI] fix several nightly and release build references
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunicorn committed Aug 14, 2024
1 parent 772e1b1 commit fba0f9b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: 0 1 * * 0-3,5-6

permissions:
contents: write

jobs:
run_checker:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -277,7 +280,7 @@ jobs:
###### #### ## ## ## ####### ######## ## ####### ######## ######## #### ###### ## ##

publish:
environment: nightly
environment: release
runs-on: ubuntu-latest
name: Publish
if: ${{ github.event.schedule }}
Expand All @@ -288,7 +291,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/download-artifact@v3
with:
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.target || 'all' }}
cancel-in-progress: true

permissions:
contents: write

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -66,9 +69,8 @@ jobs:
tag: v${{ inputs.new_version || steps.version.outputs.version }}
version: ${{ inputs.new_version || steps.version.outputs.version }}
build_num: ${{ steps.build_num.outputs.build_num }}
prev_tag: ${{ inputs.prev_tag || 'release-latest' }}
targets: ${{ inputs.target || 'all' }}
release_title: ${{ inputs.custom_title || 'Release'}}
release_title_prefix: ${{ inputs.custom_title || 'Release'}}
steps:
- id: version
# the suffix 0 allows us to provide up to 9 more hotfixes on the same day
Expand All @@ -83,7 +85,7 @@ jobs:
with:
build_num: ${{ needs.tags.outputs.build_num }}
version: ${{ needs.tags.outputs.version }}
release_title: ${{ needs.tags.outputs.release_title }} ${{ needs.tags.outputs.tag }}
release_title: "${{ needs.tags.outputs.release_title_prefix }} ${{ needs.tags.outputs.tag }}"
release_tag: ${{ needs.tags.outputs.tag }}
targets: ${{ needs.tags.outputs.targets }}
release: true
Expand Down Expand Up @@ -354,7 +356,7 @@ jobs:
###### #### ## ## ## ####### ######## ## ####### ######## ######## #### ###### ## ##

publish:
environment: nightly
environment: release
runs-on: ubuntu-latest
name: Publish
# if: ${{ github.event.schedule }}
Expand All @@ -365,7 +367,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -413,7 +415,7 @@ jobs:
# publish this full release now
draft: true
generate_release_notes: false
name: ${{ needs.tags.outputs.release_title }} ${{ needs.tags.outputs.tag }}
name: "${{ needs.tags.outputs.release_title_prefix }} ${{ needs.tags.outputs.tag }}"
tag_name: ${{ needs.tags.outputs.tag }}
body_path: CHANGELOG.md
prerelease: false
Expand Down

0 comments on commit fba0f9b

Please sign in to comment.