Upgraded to latest React MVVM [release] #160
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 | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Restore dependencies | |
run: | | |
npm install | |
dotnet restore | |
- name: Build | |
run: | | |
npm run build -- -- --mode=production | |
dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --configuration Release --no-build --verbosity normal | |
- name: Generate Publish Output | |
if: github.event_name == 'push' && contains(toJSON(github.event.commits.*.message), '[release]') | |
run: dotnet publish ./HintKeep/HintKeep.csproj --configuration Release --output ./Publish/HintKeep | |
- name: Generate Deployment Package | |
if: github.event_name == 'push' && contains(toJSON(github.event.commits.*.message), '[release]') | |
shell: pwsh | |
working-directory: ./Publish/HintKeep | |
run: | | |
rm appsettings.Development.json | |
zip -r ../HintKeep.zip . | |
- uses: Azure/[email protected] | |
with: | |
app-name: '' | |
publish-profile: ${{ secrets.PUBLISH_PROFILE }} | |
package: ./Publish/HintKeep.zip | |
type: zip | |
clean: true | |
restart: true |