File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 26
26
VERSION=${{ github.ref_name }}
27
27
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
28
28
sed -i 's/<Version>[0-9].[0-9].[0-9]<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g' MewtocolNet/MewtocolNet.csproj
29
+ less MewtocolNet/MewtocolNet.csproj
29
30
30
31
- name : Setup .NET
31
32
uses : actions/setup-dotnet@v2
@@ -35,15 +36,16 @@ jobs:
35
36
- name : Restore dependencies
36
37
run : dotnet restore
37
38
38
- - name : Build
39
- run : dotnet build "MewtocolNet"
39
+ - name : Build as ${{ env.VERSION }}
40
+ run : dotnet build "MewtocolNet" --no-incremental
40
41
41
- - name : Pack
42
+ - name : Pack as ${{ env.VERSION }}
42
43
run : dotnet pack "MewtocolNet"
43
44
44
- - name : Publish
45
+ - name : Publish as ${{ env.VERSION }}
45
46
run : |
46
47
cd '${{ github.workspace }}/Builds'
48
+ ls -l
47
49
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
48
50
49
51
- name : ' Upload artifacts to latest release'
You can’t perform that action at this time.
0 commit comments