Fix wrong ver

This commit is contained in:
Felix Weiß
2023-06-16 12:03:44 +02:00
parent b13b2d0199
commit f99af9511b

View File

@@ -26,6 +26,7 @@ jobs:
VERSION=${{ github.ref_name }}
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
sed -i 's/<Version>[0-9].[0-9].[0-9]<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g' MewtocolNet/MewtocolNet.csproj
less MewtocolNet/MewtocolNet.csproj
- name: Setup .NET
uses: actions/setup-dotnet@v2
@@ -35,15 +36,16 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build "MewtocolNet"
- name: Build as ${{ env.VERSION }}
run: dotnet build "MewtocolNet" --no-incremental
- name: Pack
- name: Pack as ${{ env.VERSION }}
run: dotnet pack "MewtocolNet"
- name: Publish
- name: Publish as ${{ env.VERSION }}
run: |
cd '${{ github.workspace }}/Builds'
ls -l
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
- name: 'Upload artifacts to latest release'