Skip to content

Commit ff93bd7

Browse files
committed
Working on releasing of dev packages.
1 parent 480e35b commit ff93bd7

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

.github/workflows/dev-packages.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,23 @@ jobs:
3131
COMMON_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+-dev(\.[0-9]+)?$/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
3232
echo "Detected Version: $COMMON_VERSION"
3333
echo "VERSION=$COMMON_VERSION" >> $GITHUB_ENV
34-
34+
35+
- name: Run Pack For Common
36+
run: dotnet pack PowerSync/PowerSync.Common -c Release -o ${{ github.workspace }}/output
37+
38+
- name: Run Push For Common
39+
run: dotnet nuget push ${{ github.workspace }}\output\PowerSync.Common*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
40+
3541
- name: Extract MAUI Package Version from CHANGELOG.md
3642
id: extract_maui_version
3743
shell: bash
3844
run: |
39-
COMMON_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+-dev(\.[0-9]+)?$/ {print $2; exit}' PowerSync/PowerSync.MAUI/CHANGELOG.md)
40-
echo "Detected Version: $COMMON_VERSION"
41-
echo "VERSION=$COMMON_VERSION" >> $GITHUB_ENV
45+
MAUI_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+-dev(\.[0-9]+)?$/ {print $2; exit}' PowerSync/PowerSync.Maui/CHANGELOG.md)
46+
echo "Detected Version: $MAUI_VERSION"
47+
echo "VERSION=$MAUI_VERSION" >> $GITHUB_ENV
48+
49+
- name: Run Pack For MAUI
50+
run: dotnet pack PowerSync/PowerSync.Maui -c Release -o ${{ github.workspace }}/output
4251

43-
# - name: Run Pack
44-
# run: dotnet pack -c Release -o ${{ github.workspace }}/output
45-
#
46-
# - name: Run Push
47-
# run: dotnet nuget push ${{ github.workspace }}\output\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
48-
#
52+
- name: Run Push For MAUI
53+
run: dotnet nuget push ${{ github.workspace }}\output\PowerSync.Maui*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# PowerSync.Common Changelog
22

3+
## 0.0.2-dev.1
4+
5+
36
## 0.0.2-alpha.3
47
- Minor changes to accommodate PowerSync.MAUI package extension.
58

PowerSync/PowerSync.Maui/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# PowerSync SDK .NET MAUI

demos/TodoSQLite/TodoSQLite.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<SingleProject>true</SingleProject>
1212
<ImplicitUsings>enable</ImplicitUsings>
1313
<Nullable>enable</Nullable>
14+
<IsPackable>false</IsPackable>
1415

1516
<!-- Display name -->
1617
<ApplicationTitle>TodoSQLite</ApplicationTitle>

demos/WPF/WPF.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<RootNamespace>PowersyncDotnetTodoList</RootNamespace>
77
<Nullable>enable</Nullable>
88
<ImplicitUsings>enable</ImplicitUsings>
9+
<IsPackable>false</IsPackable>
910
<UseWPF>true</UseWPF>
1011
<EnableWindowsTargeting>true</EnableWindowsTargeting>
1112
</PropertyGroup>

0 commit comments

Comments
 (0)