diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index c4debab..18d3c46 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -1,8 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - name: MSBuild on: @@ -12,14 +7,8 @@ on: branches: [ "master" ] env: - # Path to the solution file relative to the root of the project. SOLUTION_FILE_PATH: ButcherPeteFOSE.sln - # Configuration type to build. - # You can convert this to a build matrix if you need coverage of multiple configuration types. - # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - BUILD_CONFIGURATION: Release - permissions: contents: read @@ -33,15 +22,30 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - - name: Build + - name: Build Release working-directory: ${{env.GITHUB_WORKSPACE}} - # Add additional options to the MSBuild command line here (like platform or verbosity level). - # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /p:PostBuildEventUseInBuild=false - - - name: Publish + run: msbuild /m /p:Configuration=Release ${{env.SOLUTION_FILE_PATH}} /p:PostBuildEventUseInBuild=false + + - name: Build Debug + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Configuration=Debug ${{env.SOLUTION_FILE_PATH}} /p:PostBuildEventUseInBuild=false + + - name: Generate Timestamp + run: | + timestamp=$(date +"%Y%m%d%H%M%S") + echo "artifact_timestamp=$timestamp" >> $GITHUB_ENV + shell: bash + + - name: Publish Release uses: actions/upload-artifact@v3 with: - name: Releases + name: ButcherPeteFOSE-Release-${{ artifact_timestamp }} path: | Release\ButcherPete.dll + + - name: Publish Debug + uses: actions/upload-artifact@v3 + with: + name: ButcherPeteFOSE-Debug-${{ artifact_timestamp }} + path: | + Debug\ButcherPete.dll