Fix workflows #2
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Publish current build | |
on: | |
push: | |
branches: [ "master", "improve/update-github-actions" ] | |
paths-ignore: | |
- .gitignore | |
- CODE_OF_CONDUCT.md | |
- LGPL.txt | |
- README.md | |
- THIRD-PARTY-LICENSE-README.md | |
jobs: | |
publish: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Add package source | |
run: dotnet nuget add source ${{ github.workspace }}/Assemblies | |
- name: Restore packages | |
run: dotnet restore /property:Configuration="Debug vendor unsupported" | |
- name: Publish | |
run: dotnet publish src/MSDIAL5/MsdialGuiApp/MsdialGuiApp.csproj -p:PublishProfile=FolderProfile -o artifact --configuration "Release vendor unsupported" --framework net481 | |
- name: Copy licenses | |
run: Copy-Item -Path LGPL.txt,THIRD-PARTY-LICENSE-README.md,README.md -Destination artifact | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MSDIAL | |
path: artifact |