|
1 | 1 | # The version is pulled from the CHANGELOG.md file of the package. |
2 | 2 | name: Release |
3 | 3 |
|
4 | | -on: pull_request |
| 4 | +on: workflow_dispatch |
5 | 5 |
|
6 | 6 | jobs: |
7 | 7 | release: |
8 | 8 | name: Release |
9 | 9 | runs-on: macos-latest |
10 | | - # if: github.ref == 'refs/heads/main' |
| 10 | + if: github.ref == 'refs/heads/main' |
11 | 11 |
|
12 | 12 | steps: |
13 | 13 | - name: Checkout Repository |
|
41 | 41 | - name: Run Pack for Common |
42 | 42 | run: dotnet pack PowerSync/PowerSync.Common -c Release -o ${{ github.workspace }}/output |
43 | 43 |
|
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 }} |
47 | 47 |
|
48 | 48 | - name: Extract MAUI Package Version from CHANGELOG.md |
49 | 49 | id: extract_maui_version |
|
60 | 60 | - name: Run Pack For MAUI |
61 | 61 | run: dotnet pack PowerSync/PowerSync.Maui -c Release -o ${{ github.workspace }}/output |
62 | 62 |
|
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 }} |
73 | 66 |
|
74 | 67 | - name: Create GitHub Releases |
75 | 68 | env: |
|
0 commit comments