Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
praeclarum committed Mar 3, 2023
1 parent d99187e commit a012f30
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -p:Version=$VERSION
run: dotnet build --no-restore -c Release -p:Version=${{ env.VERSION }}
- name: Publish
if: github.event_name == 'workflow_dispatch'
run: dotnet publish --no-build -c Release -r linux-x64 -p:Version=$VERSION
run: dotnet publish --no-build -c Release -r linux-x64 -p:Version=${{ env.VERSION }}
- name: Upload artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v2
with:
name: ask-$VERSION-linux-x64
name: ask-${{ env.VERSION }}-linux-x64
path: AskGPT/bin/Release/net7.0/linux-x64/publish

build_windows:
Expand All @@ -47,13 +47,13 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -p:Version=$VERSION
run: dotnet build --no-restore -c Release -p:Version=${{ env.VERSION }}
- name: Publish
run: dotnet publish --no-build -c Release -r win-x64 -p:Version=$VERSION
run: dotnet publish --no-build -c Release -r win-x64 -p:Version=${{ env.VERSION }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ask-$VERSION-win-x64
name: ask-${{ env.VERSION }}-win-x64
path: AskGPT\bin\Release\net7.0\win-x64\publish

build_mac:
Expand All @@ -69,11 +69,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -p:Version=$VERSION
run: dotnet build --no-restore -c Release -p:Version=${{ env.VERSION }}
- name: Publish
run: dotnet publish --no-build -c Release -r osx-x64 -p:Version=$VERSION
run: dotnet publish --no-build -c Release -r osx-x64 -p:Version=${{ env.VERSION }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ask-$VERSION-macos-x64
name: ask-${{ env.VERSION }}-macos-x64
path: AskGPT/bin/Release/net7.0/osx-x64/publish

0 comments on commit a012f30

Please sign in to comment.