diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 3d73ad6..ea5245b 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -1,10 +1,9 @@ name: Build and publish server on: + workflow_dispatch: push: - branches: [ "main" ] pull_request: - branches: [ "main" ] jobs: @@ -43,10 +42,10 @@ jobs: run: dotnet publish nksrv - name: Copy to output - run: md ${GITHUB_WORKSPACE}/out/ && xcopy "${GITHUB_WORKSPACE}\ServerSelector.Desktop\bin\Release\net8.0\win-x64\publish\" "${GITHUB_WORKSPACE}\out\" && xcopy "${GITHUB_WORKSPACE}\nksrv\bin\Release\net8.0\win-x64\publish\" "${GITHUB_WORKSPACE}\out\" + run: echo ${{ github.workspace }} && md ${{ github.workspace }}/out/ && xcopy "${{ github.workspace }}\ServerSelector.Desktop\bin\Release\net8.0\win-x64\publish\" "${{ github.workspace }}\out\" && xcopy "${{ github.workspace }}\nksrv\bin\Release\net8.0\win-x64\publish\" "${{ github.workspace }}\out\" - name: Upload build artifacts uses: actions/upload-artifact@v3 with: - name: MSIX Package - path: ${GITHUB_WORKSPACE}/out/ + name: Server and Server selector + path: ${{ github.workspace }}/out/ diff --git a/.gitignore b/.gitignore index 8afdcb6..50d62c5 100644 --- a/.gitignore +++ b/.gitignore @@ -452,3 +452,7 @@ $RECYCLE.BIN/ !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json + +# Allow pregenerated ssl cert +!nksrv/site.pfx +!ServerSelector/myCA.pfx \ No newline at end of file diff --git a/ServerSelector/myCA.pfx b/ServerSelector/myCA.pfx new file mode 100644 index 0000000..d3dcb14 Binary files /dev/null and b/ServerSelector/myCA.pfx differ diff --git a/nksrv/site.pfx b/nksrv/site.pfx new file mode 100644 index 0000000..df72a49 Binary files /dev/null and b/nksrv/site.pfx differ