Skip to content

Commit d024c28

Browse files
committed
Reverting on configs for workflows.
1 parent b06939f commit d024c28

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/dev-packages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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.
33
name: Create Dev Release
44

5-
on:
6-
push:
5+
on: workflow_dispatch
76

87
jobs:
98
dev-release:

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.
22
name: Release
33

44
on: workflow_dispatch
@@ -30,9 +30,10 @@ jobs:
3030
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
3131
echo "Detected Version: $VERSION"
3232
echo "VERSION=$VERSION" >> $GITHUB_ENV
33-
33+
3434
- name: Run Pack
35-
run: dotnet pack -c Release -p:Version=$VERSION
35+
run: dotnet pack -c Release -o ${{ github.workspace }}/output
3636

3737
- 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+

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test Packages
22

3-
on: workflow_dispatch
3+
on:
4+
push:
45

56
jobs:
67
build:

0 commit comments

Comments
 (0)