File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- # Action to publish packages under the `next` tag for testing
2
- # Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`
1
+ # The version is pulled from the CHANGELOG.md file of the package.
2
+ # Added a `-dev.xxx` suffix to the version.
3
3
name : Create Dev Release
4
4
5
- on :
6
- push :
5
+ on : workflow_dispatch
7
6
8
7
jobs :
9
8
dev-release :
Original file line number Diff line number Diff line change 1
- # Packages are versioned as the latest entry in their CHANGELOG.md file.
1
+ # The version is pulled from the CHANGELOG.md file of the package .
2
2
name : Release
3
3
4
4
on : workflow_dispatch
30
30
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
31
31
echo "Detected Version: $VERSION"
32
32
echo "VERSION=$VERSION" >> $GITHUB_ENV
33
-
33
+
34
34
- name : Run Pack
35
- run : dotnet pack -c Release -p:Version=$VERSION
35
+ run : dotnet pack -c Release -o ${{ github.workspace }}/output
36
36
37
37
- name : Run Push
38
- run : dotnet nuget push PowerSync/PowerSync.Common/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
38
+ run : dotnet nuget push ${{ github.workspace }}\output\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
39
+
Original file line number Diff line number Diff line change 1
1
name : Test Packages
2
2
3
- on : workflow_dispatch
3
+ on :
4
+ push :
4
5
5
6
jobs :
6
7
build :
You can’t perform that action at this time.
0 commit comments