Update Portalum.Zvt.ControlPanel.csproj #7
Workflow file for this run
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: '.NET Portalum.Zvt.ControlPanel' | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
working-directory: ./src | |
run: dotnet restore | |
- name: Build | |
working-directory: ./src | |
run: dotnet build --configuration Release --no-restore /p:NoWarn=1591 | |
- name: Test | |
working-directory: ./src | |
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal | |
- name: Build project | |
run: | | |
dotnet publish ./src/Portalum.Zvt.ControlPanel/Portalum.Zvt.ControlPanel.csproj --configuration Release --self-contained false --runtime win-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true --output ./publish/temp | |
- uses: vimtor/[email protected] | |
with: | |
files: ./publish/temp | |
dest: ./publish/Portalum.Zvt.ControlPanel.zip | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//} | |
shell: bash | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_name: Portalum/Portalum.Zvt | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./publish/Portalum.Zvt.ControlPanel.zip | |
tag: ${{ steps.get_version.outputs.tag }} | |
overwrite: true |