Update dotnet-desktop.yml #3
This file contains hidden or 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: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Needed to create a release | |
| actions: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore -c Debug | |
| - name: Rename DLL for Release | |
| run: | | |
| mkdir -p release | |
| cp "bin/Debug/netstandard2.1/ii's Stupid Menu.dll" release/iis_Stupid_Menu.dll | |
| - name: Get short commit hash | |
| id: vars | |
| run: echo "commit_id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Create Pre-Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: beta-${{ steps.vars.outputs.commit_id }} | |
| name: Pre-Release ${{ steps.vars.outputs.commit_id }} | |
| body: | | |
| # This is a pre-release build! | |
| This version may be unstable, with bugs and issues that could set you at risk. | |
| Only use if you know what you're doing. | |
| draft: false | |
| prerelease: true | |
| files: release/iis_Stupid_Menu.dll | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |