diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..2f3ce7f --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,25 @@ +changelog: + exclude: + labels: + - bydesign + - dependencies + - duplicate + - question + - invalid + - wontfix + - need info + - docs + authors: + - devlooped-bot + - dependabot + - github-actions + categories: + - title: ✨ Implemented enhancements + labels: + - enhancement + - title: 🐛 Fixed bugs + labels: + - bug + - title: 🔨 Other + labels: + - '*' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30f7086..831bb61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,10 +87,5 @@ jobs: submodules: recursive fetch-depth: 0 - - name: ⚙ dotnet - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - name: ✓ ensure format run: dotnet format --verify-no-changes -v:diag --exclude ~/.nuget diff --git a/.github/workflows/changelog.config b/.github/workflows/changelog.config index 2d4d913..cd34ee7 100644 --- a/.github/workflows/changelog.config +++ b/.github/workflows/changelog.config @@ -1,7 +1,7 @@ usernames-as-github-logins=true issues_wo_labels=true pr_wo_labels=true -exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info +exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs enhancement-label=:sparkles: Implemented enhancements: bugs-label=:bug: Fixed bugs: issues-label=:hammer: Other: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c24ac85..bd83ada 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,11 +21,6 @@ jobs: submodules: recursive fetch-depth: 0 - - name: ⚙ dotnet - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - name: 🙏 build run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml deleted file mode 100644 index 3b4de28..0000000 --- a/.github/workflows/release-notes.yml +++ /dev/null @@ -1,61 +0,0 @@ -# Updates a release with release notes -name: release-notes - -on: - release: - types: [published] - -jobs: - release-notes: - runs-on: ubuntu-latest - steps: - - name: 🤘 checkout - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 - - - name: 🏷 current - run: echo "CURRENT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: 🏷 since - run: echo "SINCE_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))" >> $GITHUB_ENV - - - name: ⚙ ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.0.3 - - - name: ⚙ changelog - if: env.SINCE_TAG != '' - run: | - gem install github_changelog_generator - github_changelog_generator --since-tag ${{ env.SINCE_TAG }} --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/workflows/changelog.config - - - name: ⚙ changelog - if: env.SINCE_TAG == '' - run: | - gem install github_changelog_generator - github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/workflows/changelog.config - - - name: 🖉 release - shell: pwsh - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - $headers = @{ 'Accept'='application/vnd.github.v3+json;charset=utf-8'; 'Authorization' = "bearer $env:GITHUB_TOKEN" } - $id = iwr "$env:GITHUB_API_URL/repos/$env:GITHUB_REPOSITORY/releases/tags/$env:CURRENT_TAG" -Headers $headers | - select -ExpandProperty Content | - ConvertFrom-Json | - select -ExpandProperty id - - $notes = (Get-Content .\changelog.md | where { !($_ -like '\*') } | %{ $_.replace('\', '\\').replace('"', "'").replace('undefined', 'un-defined') }) -join '\n' - $body = '{ "body":"' + $notes + '" }' - - # ensure we can convert to json - $body | ConvertFrom-Json | ConvertTo-Json - - # patch & render response nicely - iwr -Body $body "$env:GITHUB_API_URL/repos/$env:GITHUB_REPOSITORY/releases/$id" -Method PATCH -Headers $headers | - select -ExpandProperty Content | - ConvertFrom-Json | - ConvertTo-Json diff --git a/.netconfig b/.netconfig index d541c0a..b0db1f1 100644 --- a/.netconfig +++ b/.netconfig @@ -23,9 +23,9 @@ sha = 4f070a477b4162a280f02722ae666376ae4fcc71 [file ".github/workflows/build.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml - etag = 9bddd007a54a6dacdecb11304a165c9bb15753f4b0ed2be984abc4a6dce81d4a + etag = 8c84cdd23cda71ed9c24be87b8a2f6ae16c97ade937ffe7a29dad5aae00148e3 weak - sha = 6d3dd85c36642a3694b10b467372a31331a52277 + sha = 4b31891ab5ac32cda49b33fa5b487532be878fd5 [file ".gitignore"] url = https://github.com/devlooped/oss/blob/main/.gitignore etag = 1c1705a3f0ed65e33c9133996ebaa100aa445a8b968b2904ad48fef938702006 @@ -38,9 +38,9 @@ sha = 0683ee777d7d878d4bf013d7deea352685135a05 [file "src/Directory.Build.props"] url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props - etag = 89855774fe1c198b2af190cd90b5df27ffe9c2cb5e242182fc9e757a83b23274 + etag = 1d5ec6bdb8b12c13635a11364dcfe54aefb82cc171f332a8d536aa35476222d5 weak - sha = c6f74cea5d6277e750d70886496aa1c84563bb46 + sha = ef8e7fa7593ded91d871d30eeebd0dc79f679159 [file "src/Directory.Build.targets"] url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets etag = 852b16129d2c681ad6ec86ff56b256541e0ce0961eb3a9492e0ead89ffe5a6bd @@ -73,14 +73,9 @@ sha = a4b66eb5f4dfb9704502f19f59ba33cb4855188c [file ".github/workflows/publish.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml - etag = 1d6a05b7f684b4fc1bb387750b0e100406e8a0017981c4e9d39a012479f35266 + etag = 58601b5a71c805647ab26e84053acdfb8d174eaa93330487af8a5503753c5707 weak - sha = 0e5a33cc685fa85e3a81b797202f3e14e1cd84a9 -[file ".github/workflows/release-notes.yml"] - url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-notes.yml - etag = 420e07d6529a14d2007347a626a26246acee2f4301eb34cfa9b3ce55761f9f46 - weak - sha = ee813ef00359fc14b7ee263a02d863407c179b10 + sha = d3022567c9ef2bc9461511e53b8abe065afdf03b [file ".github/workflows/dotnet-file.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-file.yml sha = b97b8f19569fa1b93cece4b22afab0e838693c5a @@ -101,8 +96,8 @@ weak [file ".github/workflows/changelog.config"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config - sha = a4b66eb5f4dfb9704502f19f59ba33cb4855188c - etag = 28145d505ce95b57628ab368bb12744300d5f539d3651c346e3c0c3f772ffa7b + sha = 055a8b7c94b74ae139cce919d60b83976d2a9942 + etag = ddb17acb5872e9e69a76f9dec0ca590f25382caa2ccf750df058dcabb674db2b weak [file ".github/workflows/combine-prs.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/combine-prs.yml @@ -113,4 +108,9 @@ url = https://github.com/devlooped/oss/blob/main/.github/workflows/sponsor.yml sha = 8990ebb36199046e0b8098bad9e46dcef739c56e etag = e1dc114d2e8b57d50649989d32dbf0c9080ec77da3738a4cc79e9256d6ca5d3e - weak \ No newline at end of file + weak +[file ".github/release.yml"] + url = https://github.com/devlooped/oss/blob/main/.github/release.yml + sha = 2c80ab026b7e70393630260335f8316afe8a5fbe + etag = 56173be25769857a078a27cbeb12cbf101b81d8075461ea3bd894df2ddd28677 + weak diff --git a/src/Directory.Build.props b/src/Directory.Build.props index f3fd71f..028c354 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -55,7 +55,9 @@ embedded true enable - + + strict + $(MSBuildProjectName) $(MSBuildProjectName.IndexOf('.'))