Bump actions/upload-artifact from 4.4.3 to 4.5.0 #401
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: setup-msbuild | |
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2 | |
with: | |
msbuild-architecture: x64 | |
- run: | | |
msbuild /t:restore /p:configuration=release /p:platform="Any CPU" ppt-diffmerge.sln | |
name: restore | |
- run: | | |
msbuild /t:build /p:configuration=release /p:platform="Any CPU" ppt-diffmerge.sln | |
name: build | |
- run: | | |
cd ./ppt-diffmerge-tool/bin/Release/ | |
7z a ppt-diffmerge.zip -tzip | |
name: Zip Artifact | |
- run: | | |
gh release delete latest --yes --cleanup-tag | |
git tag latest HEAD --force | |
git push origin --tags --force | |
gh release create latest --generate-notes --latest --title "Development Build" ./ppt-diffmerge-tool/bin/Release/ppt-diffmerge.zip | |
name: Create Release | |
env: | |
GH_TOKEN: ${{ github.token }} | |
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' |