mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Fix wrong ver
This commit is contained in:
10
.github/workflows/publish-pipeline.yml
vendored
10
.github/workflows/publish-pipeline.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user