Skip to content

Commit 34c7dda

Browse files
committed
prepare for merging
1 parent 67b67ac commit 34c7dda

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# The version is pulled from the CHANGELOG.md file of the package.
22
name: Release
33

4-
on: pull_request
4+
on: workflow_dispatch
55

66
jobs:
77
release:
88
name: Release
99
runs-on: macos-latest
10-
# if: github.ref == 'refs/heads/main'
10+
if: github.ref == 'refs/heads/main'
1111

1212
steps:
1313
- name: Checkout Repository
@@ -41,9 +41,9 @@ jobs:
4141
- name: Run Pack for Common
4242
run: dotnet pack PowerSync/PowerSync.Common -c Release -o ${{ github.workspace }}/output
4343

44-
# - name: Run Push for Common
45-
# continue-on-error: true
46-
# run: dotnet nuget push ${{ github.workspace }}/output/PowerSync.Common*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
44+
- name: Run Push for Common
45+
continue-on-error: true
46+
run: dotnet nuget push ${{ github.workspace }}/output/PowerSync.Common*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
4747

4848
- name: Extract MAUI Package Version from CHANGELOG.md
4949
id: extract_maui_version
@@ -60,16 +60,9 @@ jobs:
6060
- name: Run Pack For MAUI
6161
run: dotnet pack PowerSync/PowerSync.Maui -c Release -o ${{ github.workspace }}/output
6262

63-
# - name: Run Push For MAUI
64-
# continue-on-error: true
65-
# run: dotnet nuget push ${{ github.workspace }}/output/PowerSync.Maui*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
66-
67-
- name: Generate Release Notes
68-
shell: bash
69-
run: |
70-
chmod +x ./Scripts/gen_release_notes.sh
71-
./Scripts/gen_release_notes.sh PowerSync/PowerSync.Common/CHANGELOG.md > /tmp/release_notes_common.md
72-
./Scripts/gen_release_notes.sh PowerSync/PowerSync.Maui/CHANGELOG.md > /tmp/release_notes_maui.md
63+
- name: Run Push For MAUI
64+
continue-on-error: true
65+
run: dotnet nuget push ${{ github.workspace }}/output/PowerSync.Maui*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
7366

7467
- name: Create GitHub Releases
7568
env:

0 commit comments

Comments
 (0)