Update dotnet-desktop.yml #13
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
| # Credits to The-Graze/Grate for the auto-build setup | |
| name: .NET | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| 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 | |
| if: github.event_name != 'pull_request' | |
| 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 cause crashes, data loss, or other unexpected behavior. | |
| It is intended for testing and feedback purposes only. | |
| **Use at your own risk - only proceed if you know what you're doing!** | |
| draft: false | |
| prerelease: true | |
| files: release/iis_Stupid_Menu.dll | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |