Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ami-release-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,17 @@ jobs:
git tag "${CLI_TAG}" "${{ github.sha }}"
git push origin "${CLI_TAG}"

- name: Trigger CLI release workflow for PG 17
if: matrix.postgres_version == '17' && github.event_name != 'workflow_dispatch'
env:
GH_TOKEN: ${{ github.token }}
run: |
VERSION="${{ steps.process_release_version.outputs.version }}"
CLI_TAG="v${VERSION}-cli"
gh workflow run cli-release.yml \
--ref "${CLI_TAG}" \
-f version="${CLI_TAG}"

- name: Trigger pg_upgrade_scripts workflow
if: matrix.arch.name == 'arm64'
env:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ jobs:
name: Create GitHub Release
needs: [build-native, test-portability]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
permissions:
contents: write
steps:
Expand Down Expand Up @@ -443,8 +443,18 @@ jobs:

ls -lh release/

- name: Determine release tag
id: release_tag
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "tag=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
else
echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi

- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.release_tag.outputs.tag }}
files: release/*
generate_release_notes: true
Loading