Update dotnet tools #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Client Artifact | |
on: | |
push: | |
branches: | |
- 'develop' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
env: | |
DOTNET_VERSION: '9.0.x' | |
jobs: | |
client: | |
name: Publish Client | |
runs-on: ubuntu-latest | |
env: | |
DatabaseConfiguration__UseInMemoryDb: true | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Restore Tools | |
run: | | |
cd Frontend/Bones.Api.Client | |
dotnet tool restore | |
cd ../.. | |
cd Frontend/Bones.WebUI | |
dotnet workload restore | |
cd ../.. | |
- name: Publish | |
run: | | |
cd Frontend/Bones.WebUI | |
dotnet publish Bones.WebUI.csproj --configuration Release --property PublishDir=../../publish/ | |
cd ../.. | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: webui-wasm-client | |
path: ./publish |