fix: Use squash merge in auto-merge workflow #11
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v** | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| name: Publish | |
| uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main | |
| with: | |
| generate-build-number: false | |
| conventional-commits-publish-conditions: false | |
| enable-caching: false | |
| additional-test-arguments: '--logger GitHubActions' | |
| secrets: | |
| nuget-key: ${{ secrets.NUGET_KEY }} | |
| trim-check: | |
| name: Trimming Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| - name: Install AutoSDK CLI | |
| run: dotnet tool install --global autosdk.cli --prerelease | |
| - name: Run trimming check | |
| run: autosdk trim src/libs/Reka/Reka.csproj | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| needs: [publish] | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Create release | |
| run: gh release create ${{ github.ref_name }} | |
| --title "${{ github.ref_name }}" | |
| --generate-notes | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |