Skip to content
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
shell: bash
run: |
COMMON_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
if [[ -z "$COMMON_VERSION" ]]; then
echo "Error: Invalid version found in PowerSync.Common/CHANGELOG.md. Expected format: '## x.x.x'"
exit 1
fi
echo "Detected Version: $COMMON_VERSION"
echo "VERSION=$COMMON_VERSION" >> $GITHUB_ENV
echo "COMMON_VERSION=$COMMON_VERSION" >> $GITHUB_ENV
Expand All @@ -53,6 +57,10 @@ jobs:
shell: bash
run: |
MAUI_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Maui/CHANGELOG.md)
if [[ -z "$MAUI_VERSION" ]]; then
echo "Error: Invalid version found in PowerSync.Maui/CHANGELOG.md. Expected format: '## x.x.x'"
exit 1
fi
echo "Detected Version: $MAUI_VERSION"
echo "VERSION=$MAUI_VERSION" >> $GITHUB_ENV
echo "MAUI_VERSION=$MAUI_VERSION" >> $GITHUB_ENV
Expand All @@ -72,11 +80,13 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "PowerSync.Common@${{ env.COMMON_VERSION }}" \
--draft \
--title "PowerSync.Common@${{ env.COMMON_VERSION }}" \
--target main \
--generate-notes \
${{ github.workspace }}/output/PowerSync.Common*.nupkg
gh release create "PowerSync.Maui@${{ env.MAUI_VERSION }}" \
--draft \
--title "PowerSync.Maui@${{ env.MAUI_VERSION }}" \
--target main \
--generate-notes \
Expand Down