Skip to content

Commit f99af95

Browse files
committed
Fix wrong ver
1 parent b13b2d0 commit f99af95

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish-pipeline.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
VERSION=${{ github.ref_name }}
2727
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
2828
sed -i 's/<Version>[0-9].[0-9].[0-9]<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g' MewtocolNet/MewtocolNet.csproj
29+
less MewtocolNet/MewtocolNet.csproj
2930
3031
- name: Setup .NET
3132
uses: actions/setup-dotnet@v2
@@ -35,15 +36,16 @@ jobs:
3536
- name: Restore dependencies
3637
run: dotnet restore
3738

38-
- name: Build
39-
run: dotnet build "MewtocolNet"
39+
- name: Build as ${{ env.VERSION }}
40+
run: dotnet build "MewtocolNet" --no-incremental
4041

41-
- name: Pack
42+
- name: Pack as ${{ env.VERSION }}
4243
run: dotnet pack "MewtocolNet"
4344

44-
- name: Publish
45+
- name: Publish as ${{ env.VERSION }}
4546
run: |
4647
cd '${{ github.workspace }}/Builds'
48+
ls -l
4749
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
4850
4951
- name: 'Upload artifacts to latest release'

0 commit comments

Comments
 (0)