Skip to content

Commit 08b5b6b

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Only ignore App folder directly under the root devlooped/oss@02811fa - Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f - Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59 - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Update to checkout@v4 devlooped/oss@5fb1723 - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea # clarius/pages
1 parent ead977c commit 08b5b6b

14 files changed

+105
-95
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ updates:
2929
- "Microsoft.AspNetCore*"
3030
Tests:
3131
patterns:
32-
- "Microsoft.NET.Tests*"
32+
- "Microsoft.NET.Test*"
3333
- "xunit*"
3434
- "coverlet*"
3535
ThisAssembly:

.github/workflows/build.yml

+21-15
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,30 @@
44
name: build
55
on:
66
workflow_dispatch:
7+
inputs:
8+
configuration:
9+
type: choice
10+
description: Configuration
11+
options:
12+
- Release
13+
- Debug
714
push:
815
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
916
paths-ignore:
1017
- changelog.md
11-
- code-of-conduct.md
12-
- security.md
13-
- support.md
1418
- readme.md
1519
pull_request:
1620
types: [opened, synchronize, reopened]
1721

1822
env:
1923
DOTNET_NOLOGO: true
24+
PackOnBuild: true
25+
GeneratePackageOnBuild: true
2026
VersionPrefix: 42.42.${{ github.run_number }}
2127
VersionLabel: ${{ github.ref }}
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
2231

2332
defaults:
2433
run:
@@ -31,7 +40,7 @@ jobs:
3140
matrix: ${{ steps.lookup.outputs.matrix }}
3241
steps:
3342
- name: 🤘 checkout
34-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3544

3645
- name: 🔎 lookup
3746
id: lookup
@@ -50,7 +59,7 @@ jobs:
5059
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5160
steps:
5261
- name: 🤘 checkout
53-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
5463
with:
5564
submodules: recursive
5665
fetch-depth: 0
@@ -67,8 +76,12 @@ jobs:
6776
- name: 🧪 test
6877
uses: ./.github/workflows/test
6978

70-
- name: 📦 pack
71-
run: dotnet pack -m:1 -bl:pack.binlog
79+
- name: 🐛 logs
80+
uses: actions/upload-artifact@v3
81+
if: runner.debug && always()
82+
with:
83+
name: logs
84+
path: '*.binlog'
7285

7386
# Only push CI package to sleet feed if building on ubuntu (fastest)
7487
- name: 🚀 sleet
@@ -79,18 +92,11 @@ jobs:
7992
dotnet tool install -g --version 4.0.18 sleet
8093
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
8194
82-
- name: 🐛 logs
83-
uses: actions/upload-artifact@v3
84-
if: runner.debug && always()
85-
with:
86-
name: logs
87-
path: '*.binlog'
88-
8995
dotnet-format:
9096
runs-on: ubuntu-latest
9197
steps:
9298
- name: 🤘 checkout
93-
uses: actions/checkout@v2
99+
uses: actions/checkout@v4
94100
with:
95101
submodules: recursive
96102
fetch-depth: 0

.github/workflows/changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github_token: ${{ secrets.GITHUB_TOKEN }}
1818

1919
- name: 🤘 checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
ref: main

.github/workflows/dotnet-file.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: 🤘 checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030
ref: main
3131
token: ${{ env.GH_TOKEN }}
3232

3333
- name: ⌛ rate
3434
shell: pwsh
35+
if: github.event_name != 'workflow_dispatch'
3536
run: |
3637
# add random sleep since we run on fixed schedule
3738
sleep (get-random -max 60)
@@ -70,7 +71,7 @@ jobs:
7071
validate: false
7172

7273
- name: ✍ pull request
73-
uses: peter-evans/create-pull-request@v4
74+
uses: peter-evans/create-pull-request@v6
7475
with:
7576
base: main
7677
branch: dotnet-file-sync

.github/workflows/includes.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: 🤘 checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
token: ${{ env.GH_TOKEN }}
2727

2828
- name: +Mᐁ includes
2929
uses: devlooped/actions-includes@v1
3030

3131
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v4
32+
uses: peter-evans/create-pull-request@v6
3333
with:
34+
add-paths: '**/*.md'
3435
base: main
3536
branch: markdown-includes
3637
delete-branch: true

.github/workflows/publish.yml

+24-11
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,50 @@
55
name: publish
66
on:
77
release:
8-
types: [released]
8+
types: [prereleased, released]
99

1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13-
13+
PackOnBuild: true
14+
GeneratePackageOnBuild: true
15+
VersionLabel: ${{ github.ref }}
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17+
MSBUILDTERMINALLOGGER: auto
18+
1419
jobs:
1520
publish:
1621
runs-on: ubuntu-latest
1722
steps:
1823
- name: 🤘 checkout
19-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2025
with:
2126
submodules: recursive
2227
fetch-depth: 0
2328

2429
- name: 🙏 build
25-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog
30+
run: dotnet build -m:1 -bl:build.binlog
2631

2732
- name: 🧪 test
2833
uses: ./.github/workflows/test
2934

30-
- name: 📦 pack
31-
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:pack.binlog
32-
33-
- name: 🚀 nuget
34-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
35-
3635
- name: 🐛 logs
3736
uses: actions/upload-artifact@v3
3837
if: runner.debug && always()
3938
with:
4039
name: logs
41-
path: '*.binlog'
40+
path: '*.binlog'
41+
42+
- name: 🚀 nuget
43+
env:
44+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
45+
if: env.NUGET_API_KEY != ''
46+
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
47+
48+
- name: 🚀 sleet
49+
env:
50+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
51+
if: env.SLEET_CONNECTION != ''
52+
run: |
53+
dotnet tool install -g --version 4.0.18 sleet
54+
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"

.github/workflows/sponsor.yml

-24
This file was deleted.

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
bin
2-
app
32
obj
43
artifacts
54
pack
65
TestResults
76
results
87
BenchmarkDotNet.Artifacts
8+
/app
99
.vs
1010
.vscode
1111
.idea

.netconfig

+22-27
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
weak
3030
[file ".github/workflows/changelog.yml"]
3131
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.yml
32-
sha = a4b66eb5f4dfb9704502f19f59ba33cb4855188c
33-
etag = 54c0b571648b1055beb3ddac180b34e93a9869b9f0277de306901b2c1dbe0b2c
32+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
33+
etag = ad1efa56d6024ee1add2bcda81a7e4e38d0e9069473c6ff70374d5ce06af1f5a
3434
weak
3535
[file ".github/dependabot.yml"]
3636
url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
37-
sha = 35ca3f3405452465058d89005f8a88a65847c377
38-
etag = f8080f8f04d87529e90d9a66751d304a7141196fb9734aa2d110784e52e66898
37+
sha = 49661dbf0720cde93eb5569be7523b5912351560
38+
etag = c147ea2f3431ca0338c315c4a45b56ee233c4d30f8d6ab698d0e1980a257fd6a
3939
weak
4040
[file ".github/workflows/dotnet-file.yml"]
4141
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-file.yml
42-
sha = f08c3f28e46e28eb31e70846d65e57aa9553ce56
43-
etag = 567444486383d032c1c5fbc538f07e860f92b1d08c66ac6ffb1db64ca539251c
42+
sha = 7afe350f7e80a230e922db026d4e1198ba15cae1
43+
etag = 65e9794df6caff779eb989c8f71ddf4d4109b24a75af79e4f8d0fe6ba7bd9702
4444
weak
4545
[file "license.txt"]
4646
url = https://github.com/devlooped/oss/blob/main/license.txt
@@ -54,13 +54,13 @@
5454
weak
5555
[file "src/Directory.Build.props"]
5656
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
57-
sha = b1d14c6379e5820eb2c30e08bedbdf6e9c8e8cb2
58-
etag = 33cd19e0f599f444c320406da3452e9e84d28c3bb13c09e9190d9d2e7f129545
57+
sha = b76de49afb376aa48eb172963ed70663b59b31d3
58+
etag = c8b56f3860cc7ccb8773b7bd6189f5c7a6e3a2c27e9104c1ee201fbdc5af9873
5959
weak
6060
[file "src/Directory.Build.targets"]
6161
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
62-
sha = 1bf1eacc7ac3920d52c8e7045bfa34abc7c05302
63-
etag = 7cb1421f00d9f6f4c00f0ca98e485dcadb927cfa6b3f0b5d4fb212525d2ce9c0
62+
sha = 33a20db26e47589769284817b271ce67ea9ccfd8
63+
etag = 1a3a0151b5771ee97ed8351254ff4c18a0ff568e0df5c33c6830f069bfbb067b
6464
weak
6565
[file "src/nuget.config"]
6666
url = https://github.com/devlooped/oss/blob/main/src/nuget.config
@@ -72,8 +72,8 @@
7272
weak
7373
[file "Gemfile"]
7474
url = https://github.com/clarius/pages/blob/main/Gemfile
75-
sha = 565a77f40db0863cb47ceb36f88790259a697c91
76-
etag = 24e482e91192e292b633e3c17c4f095286ffb5a041d299d761b2e6ef99ee7669
75+
sha = 90fa16ed0e7300a78a38ee1d23c34a7e875aab27
76+
etag = 3dd7febc8ae6760f19abfe787711f469c288cd803a6f1c545edec34264d48e71
7777
weak
7878
[file ".gitattributes"]
7979
url = https://github.com/devlooped/oss/blob/main/.gitattributes
@@ -83,8 +83,8 @@
8383
[file ".github/workflows/build.yml"]
8484
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
8585
weak
86-
sha = 13d67e2cf3f786c8189364fd29332aaa7dc575dc
87-
etag = c616df0877fba60002ccfc0397e9f731ddb22acbbb195a0598fedd4cac5f3135
86+
sha = 65f89e06ed7b2ac33ed3b729adc865b7076840d8
87+
etag = 20ef46203325f5b3d06a991f8b38c24bcea49fd74d39062a62003448e2dd8b0a
8888
[file ".github/workflows/changelog.config"]
8989
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
9090
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
@@ -97,28 +97,23 @@
9797
weak
9898
[file ".github/workflows/includes.yml"]
9999
url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
100-
sha = ac753b791d03997eb655efb26ae141b51addd1c0
101-
etag = fcd94a08ac9ebc0e8351deac4e7f085cf8ef67816cc50006e068f44166096eb8
100+
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
101+
etag = e5ee22e115c925fb85ec931cda3ac811fcc453c03904554fa3f573935b221d34
102102
weak
103103
[file ".github/workflows/publish.yml"]
104104
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
105105
weak
106-
sha = d3022567c9ef2bc9461511e53b8abe065afdf03b
107-
etag = 58601b5a71c805647ab26e84053acdfb8d174eaa93330487af8a5503753c5707
108-
[file ".github/workflows/sponsor.yml"]
109-
url = https://github.com/devlooped/oss/blob/main/.github/workflows/sponsor.yml
110-
sha = 8990ebb36199046e0b8098bad9e46dcef739c56e
111-
etag = e1dc114d2e8b57d50649989d32dbf0c9080ec77da3738a4cc79e9256d6ca5d3e
112-
weak
106+
sha = 40ee833a83d843c242914599e2635ca9a05aa837
107+
etag = 105db682c332b2bb0873e60a7d2da45b00fe7d83da0f0e7dbf9a84bc5be77c25
113108
[file ".gitignore"]
114109
url = https://github.com/devlooped/oss/blob/main/.gitignore
115-
sha = ef852e7d2ec9a845dac272dfc479909c0bc6d9f3
116-
etag = a556d6108892aa8e7e63476f4fad3a898b3ec1deda94332dd4e89d2fb6b555ca
110+
sha = 02811fa23b0a102b9b33048335d41e515bf75737
111+
etag = a9c37ae312afac14b78436a7d018af4483d88736b5f780576f2c5a0b3f14998c
117112
weak
118113
[file "Directory.Build.rsp"]
119114
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
120-
sha = ae25fae9d7daf0cb47d537ba870914aa3052f0c9
121-
etag = 6a6c6e1d3895df953abf14c82b0899e3eea75cdcd679f6212dcfea15183d73d6
115+
sha = a75b141696469a08a5690fed9433d41cfbac1077
116+
etag = 4ca5cb069b08db5de966e081e2c4b96e3b6a030680d98f1d9ae5f3305e87bfc3
122117
weak
123118
[file "_config.yml"]
124119
url = https://github.com/devlooped/oss/blob/main/_config.yml

Directory.Build.rsp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
-nr:false
33
-m:1
44
-v:m
5-
-clp:Summary;ForceNoAlign
5+
-clp:Summary;ForceNoAlign
6+
-l:trx

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source 'https://rubygems.org'
22

3-
gem 'github-pages', '~> 209', group: :jekyll_plugins
3+
gem 'github-pages', '~> 231', group: :jekyll_plugins

0 commit comments

Comments
 (0)