Skip to content

Commit 77e79a2

Browse files
committedDec 22, 2020
⭮ Switch to devlooped/oss template repo upstream
1 parent e0de311 commit 77e79a2

15 files changed

+183
-59
lines changed
 

‎.github/FUNDING.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
custom: https://paypal.me/kzu
2-
patreon: danielkzu
3-
open_collective: kzu
4-
liberapay: kzu
1+
github: devlooped

‎.github/workflows/build.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,23 @@ defaults:
1616
shell: bash
1717

1818
jobs:
19+
dotnet-format:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: 🤘 checkout
23+
uses: actions/checkout@v2
24+
- name: ⚙ dotnet 3.1.x
25+
uses: actions/setup-dotnet@v1
26+
with:
27+
dotnet-version: 3.1.x
28+
- name: ✓ ensure format
29+
run: |
30+
dotnet tool update -g --version 4.1.* dotnet-format
31+
dotnet format -f src --check -v:diag
32+
1933
build:
2034
name: build-${{ matrix.os }}
35+
needs: dotnet-format
2136
runs-on: ${{ matrix.os }}
2237
strategy:
2338
matrix:
@@ -42,27 +57,22 @@ jobs:
4257
with:
4358
dotnet-version: 2.1.x
4459

45-
- name: ✓ check formatting
46-
run: |
47-
dotnet tool update -g --version 4.1.* dotnet-format
48-
dotnet format -f src --check -v:diag
49-
5060
- name: 🙏 build
51-
run: dotnet build -m:1 -bl:build.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
61+
run: dotnet build -m:1 -bl:build.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
5262

5363
- name: 🧪 test
5464
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m -d $GITHUB_WORKSPACE/logs/${{ matrix.os }}.txt -r $GITHUB_WORKSPACE/logs
5565

5666
- name: 📦 pack
57-
run: dotnet pack -m:1 -bl:pack.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
67+
run: dotnet pack -m:1 -bl:pack.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
5868

5969
- name: 🔼 logs
6070
if: always()
6171
uses: actions/upload-artifact@v2
6272
with:
6373
name: ${{ matrix.os }}
6474
path: |
65-
*.binlog
75+
**/*.binlog
6676
logs/**/*.*
6777
6878
# Only push CI package to sleet feed if building on ubuntu (fastest)

‎.github/workflows/pages.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- pages
7+
8+
jobs:
9+
gh-pages:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🤘 checkout
13+
uses: actions/checkout@v2
14+
15+
- name: ⚙ jekyll
16+
run: |
17+
sudo gem install bundler
18+
bundle install
19+
20+
- name: 🖉 repo
21+
run: echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
22+
23+
- name: 🙏 build
24+
run: bundle exec jekyll build -b ${{ env.REPOSITORY }}
25+
env:
26+
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: ✓ commit
29+
run: |
30+
cd _site
31+
git init
32+
git add -A
33+
git config --local user.email "hello@clarius.org"
34+
git config --local user.name "GitHub Action"
35+
git commit -m "Publish ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
36+
37+
- name: 🚀 push
38+
uses: ad-m/github-push-action@v0.6.0
39+
with:
40+
github_token: ${{ secrets.CLARIUS_ACCESS_TOKEN }}
41+
repository: clarius/${{ env.REPOSITORY }}
42+
branch: gh-pages
43+
force: true
44+
directory: ./_site

‎.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
dotnet-version: 2.1.x
3636

3737
- name: 🙏 build
38-
run: dotnet build -m:1 -bl:build.binlog -p:version=${GITHUB_REF#refs/*/v}
38+
run: dotnet build -m:1 -bl:build.binlog -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}
3939

4040
- name: 🧪 test
4141
run: dotnet test --no-build -m:1
4242

4343
- name: 📦 pack
44-
run: dotnet pack -m:1 -bl:pack.binlog -p:version=${GITHUB_REF#refs/*/v}
44+
run: dotnet pack -m:1 -bl:pack.binlog -p:version=${GITHUB_REF#refs/*/v} -p:RepositoryBranch=${GITHUB_REF#refs/*/}
4545

4646
- name: 🔼 logs
4747
if: ${{ always() }}
4848
uses: actions/upload-artifact@v2
4949
with:
50-
path: '*.binlog'
50+
path: '**/*.binlog'
5151

5252
- name: 🚀 nuget
5353
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

‎.gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ pack
1919
.nuget
2020
*.lock.json
2121
*.nuget.props
22-
*.nuget.targets
22+
*.nuget.targets
23+
24+
node_modules
25+
_site
26+
.jekyll-metadata
27+
.jekyll-cache
28+
Gemfile.lock
29+
package-lock.json

‎.netconfig

+56-32
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,116 @@
11
[file]
2-
url = https://github.com/kzu/oss
2+
url = https://github.com/devlooped/oss
33
[file "readme.md"]
4-
url = https://github.com/kzu/oss/blob/main/readme.md
4+
url = https://github.com/devlooped/oss/blob/main/readme.md
55
skip
66
etag = 1963a9db5d9ee9a89da7ec5f00c4c7daf10862f10e31583b05716697e7e75526
77
weak
88
[file "src/icon.png"]
9-
url = https://github.com/kzu/oss/blob/main/src/icon.png
9+
url = https://github.com/devlooped/oss/blob/main/src/icon.png
1010
skip
1111
etag = 8b42109e3bd1da0fc50c67679c6d20aeac98f922870675e127cf19b8f2919971
1212
weak
1313
[file ".editorconfig"]
14-
url = https://github.com/kzu/oss/blob/main/.editorconfig
14+
url = https://github.com/devlooped/oss/blob/main/.editorconfig
1515
etag = 985aa022503959d35b03c870f07ae604cead7580d260775235ef6665aa9a6cbe
1616
weak
1717
[file ".gitattributes"]
18-
url = https://github.com/kzu/oss/blob/main/.gitattributes
18+
url = https://github.com/devlooped/oss/blob/main/.gitattributes
1919
etag = 7acb32f5fa6d4ccd9c824605a7c2b8538497f0068c165567807d393dcf4d6bb7
2020
weak
2121
[file ".github/FUNDING.yml"]
22-
url = https://github.com/kzu/oss/blob/main/.github/FUNDING.yml
23-
etag = dbc0e0c56e48bf06a70f50ba2fdaf6f048bb81ac8558b743c8e919487da3bfcf
22+
url = https://github.com/devlooped/oss/blob/main/.github/FUNDING.yml
23+
etag = f4d02805592d1f86c29acc9da3a40e817fb3611d6ff0f6409f547137f38f65df
2424
weak
2525
[file ".github/ISSUE_TEMPLATE/bug.md"]
26-
url = https://github.com/kzu/oss/blob/main/.github/ISSUE_TEMPLATE/bug.md
26+
url = https://github.com/devlooped/oss/blob/main/.github/ISSUE_TEMPLATE/bug.md
2727
etag = 026852ba1f1921f3a043bb5e09cd7a2c3d9a33ec51f48e524dc3a2ab72de3141
2828
weak
2929
[file ".github/dependabot.yml"]
30-
url = https://github.com/kzu/oss/blob/main/.github/dependabot.yml
30+
url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
3131
etag = 2fc8a0d2b47091b058ae3e1f68333492044b49a684621f4939a0bce5bff869d5
3232
weak
3333
[file ".github/workflows/build.yml"]
34-
url = https://github.com/kzu/oss/blob/main/.github/workflows/build.yml
35-
etag = 4d598303ec512578cff4b6d539929490ec844dd9c0605251bd769adbe120b50d
34+
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
35+
etag = 868172e62b2cac855039731fd1ea929f0a569f675586903450d24bc232c43ea9
3636
weak
3737
[file ".github/workflows/release.yml"]
38-
url = https://github.com/kzu/oss/blob/main/.github/workflows/release.yml
39-
etag = 0142be91e1ec4607aa398975c4e066ea07f9a610b412eaf53f9f2f9d86aa70fc
38+
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release.yml
39+
etag = 9035cfc96bc6340476e196699695b49a19066039e8774497659413f8a8cb8e2a
4040
weak
4141
[file ".github/workflows/tag.yml"]
42-
url = https://github.com/kzu/oss/blob/main/.github/workflows/tag.yml
42+
url = https://github.com/devlooped/oss/blob/main/.github/workflows/tag.yml
4343
etag = 26e271cf76e00c6922552af104b1e496103bdfa75ebef253447594207b10153e
4444
weak
4545
[file ".github_changelog_generator"]
46-
url = https://github.com/kzu/oss/blob/main/.github_changelog_generator
46+
url = https://github.com/devlooped/oss/blob/main/.github_changelog_generator
4747
etag = a724e0cbbad99a04e6cd3738a5f3ec5416dd5f29ae7073e7afe5471e73107e42
4848
weak
4949
[file ".gitignore"]
50-
url = https://github.com/kzu/oss/blob/main/.gitignore
51-
etag = 4698b35abed1f3941de6bed08bc80278c30569de3ead5b878b27b4bb79f8718a
50+
url = https://github.com/devlooped/oss/blob/main/.gitignore
51+
etag = 925782b685859e07040442303b411bebd1c75b4fe4e075f547e067f33f323814
5252
weak
5353
[file "license.txt"]
54-
url = https://github.com/kzu/oss/blob/main/license.txt
54+
url = https://github.com/devlooped/oss/blob/main/license.txt
5555
etag = 2c6335b37e4ae05eea7c01f5d0c9d82b49c488f868a8b5ba7bff7c6ff01f3994
5656
weak
5757
[file "security.md"]
58-
url = https://github.com/kzu/oss/blob/main/security.md
59-
etag = 80070e3a380796b13d180b82f43694eac9e7a29d8d2f8549ccb2920fd5c88828
58+
url = https://github.com/devlooped/oss/blob/main/security.md
59+
etag = fc8101fd914820db3e6b42d608dc46aefbc60c830ac721ed3917daead3727dbd
6060
weak
6161
[file "src/Directory.Build.props"]
62-
url = https://github.com/kzu/oss/blob/main/src/Directory.Build.props
63-
etag = a74681138b2e306cce2cbfc4b73148bb5a060a040abf1d86d9116fa36601a376
62+
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
63+
etag = 1ea71942b9ff7830612ceb3a2927c0d011c54891a7653b07ef01b914347e306f
6464
weak
6565
[file "src/Directory.Build.targets"]
66-
url = https://github.com/kzu/oss/blob/main/src/Directory.Build.targets
67-
etag = 5493a6e0a33cf0efe11b49d71f30bbd2555c4f94924f07a3f39fa47e466b705d
66+
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
67+
etag = 236390b1c5b2576d6d013656e24f6d74a0042a0e4071a19e8c626cf6b7005b54
6868
weak
6969
[file "src/kzu.snk"]
70-
url = https://github.com/kzu/oss/blob/main/src/kzu.snk
70+
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk
7171
etag = b8d789b5b6bea017cdcc8badcea888ad78de3e34298efca922054e9fb0e7b6b9
7272
weak
7373
[file "code-of-conduct.md"]
74-
url = https://github.com/kzu/oss/blob/main/code-of-conduct.md
74+
url = https://github.com/devlooped/oss/blob/main/code-of-conduct.md
7575
etag = 4857c01bb695f09bf6912d778951c3065d9dd565e5de3d0827f40432d0e4c613
7676
weak
7777
[file ".netconfig"]
78-
url = https://github.com/kzu/oss/blob/main/.netconfig
79-
etag = f9bcd2682af965d509ff87ea135ad4a8eaff5a627a6922d67c67e83489e39455
78+
url = https://github.com/devlooped/oss/blob/main/.netconfig
79+
etag = a4820401517318344dda1fee281e7da811483ffc0ec55ca86dac3962a3cdcf3b
8080
weak
8181
[file "Directory.Build.rsp"]
82-
url = https://github.com/kzu/oss/blob/main/Directory.Build.rsp
82+
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
8383
etag = 6a6c6e1d3895df953abf14c82b0899e3eea75cdcd679f6212dcfea15183d73d6
8484
weak
8585
[file "_config.yml"]
86-
url = https://github.com/kzu/oss/blob/main/_config.yml
87-
etag = c7f2063ead734d0afc383a07c35da2864a221311da8e1c0c6fea8939e932d2ab
86+
url = https://github.com/devlooped/oss/blob/main/_config.yml
87+
etag = 9139148f845adf503fd3c3c140eb64421fc476a1f9c027fc50825c0efb05f557
8888
weak
8989
[file ".github/ISSUE_TEMPLATE/config.yml"]
90-
url = https://github.com/kzu/oss/blob/main/.github/ISSUE_TEMPLATE/config.yml
90+
url = https://github.com/devlooped/oss/blob/main/.github/ISSUE_TEMPLATE/config.yml
9191
etag = b5ce64e6967276086eb89f86f57364da9c4deac988c7e0e04810a4f8caaa1400
9292
weak
93+
[file ".github/workflows/pages.yml"]
94+
url = https://github.com/devlooped/oss/blob/main/.github/workflows/pages.yml
95+
etag = 3f1fb2481dcb41987d775eb6ed61c10adc00995f287636e7adda3ade5efc94b7
96+
weak
97+
[file "Gemfile"]
98+
url = https://github.com/devlooped/oss/blob/main/Gemfile
99+
etag = d45832acd078778ffebf260000f6d25172a131f51684744d7e982da2a47170ce
100+
weak
101+
[file "assets/css/style.scss"]
102+
url = https://github.com/devlooped/oss/blob/main/assets/css/style.scss
103+
etag = 2c86a074a6c8c2f6af806908a57215439fad563830b4af8fbed1a3aabaede0cf
104+
weak
105+
[file "assets/images/sponsors.png"]
106+
url = https://github.com/devlooped/oss/blob/main/assets/images/sponsors.png
107+
etag = f152d1038eb04cb1596a13377b032f18f2402c969130601384fb377ce5ddefbd
108+
weak
109+
[file "assets/images/sponsors.svg"]
110+
url = https://github.com/devlooped/oss/blob/main/assets/images/sponsors.svg
111+
etag = 182780a2d68bdba9069000aef75712ab81c307eee1317bcd29d35563f523ba98
112+
weak
113+
[file "support.md"]
114+
url = https://github.com/devlooped/oss/blob/main/support.md
115+
etag = 2d47e2fc4fdfa3515203d452674566e3df507461f9938f451a06d79deb687d24
116+
weak

‎Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'github-pages', '~> 209', group: :jekyll_plugins

‎_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
theme: jekyll-theme-slate
2+
3+
exclude: [ 'src/', '*.sln', 'Gemfile*', '*.rsp' ]

‎assets/css/style.scss

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
---
3+
4+
@import "jekyll-theme-slate";
5+
6+
.inner {
7+
max-width: 960px;
8+
}
9+
10+
pre, code {
11+
background-color: unset;
12+
font-size: unset;
13+
}
14+
15+
code {
16+
font-size: 0.80em;
17+
}

‎assets/images/sponsors.png

10.2 KB
Loading

‎assets/images/sponsors.svg

+3
Loading

‎security.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Reporting a Vulnerability
44

5-
Security issues and bugs should be reported privately by emailing hello@clarius.org.
5+
Security issues and bugs should be reported privately by emailing security@devlooped.com.
66
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your
7-
original message and ping [@kzu](https://twitter.com/kzu) on Twitter.
7+
original message and ping [@devlooped](https://twitter.com/devlooped) on Twitter.
88

99
Please do not open issues for anything you think might have a security implication.

‎src/Directory.Build.props

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- The Microsoft.Managed.Core.targets use this property to use deterministic source paths in CI builds -->
1818
<ContinuousIntegrationBuild>$(CI)</ContinuousIntegrationBuild>
1919
</PropertyGroup>
20-
20+
2121
<PropertyGroup Label="NuGet">
2222
<Authors>kzu</Authors>
2323
<Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
@@ -38,8 +38,8 @@
3838

3939
<ItemGroup Label="NuGet">
4040
<!-- This is compatible with nugetizer and SDK pack -->
41-
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
42-
Pack="true"
41+
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
42+
Pack="true"
4343
Visible="false"
4444
PackagePath="%(Filename)%(Extension)" />
4545
</ItemGroup>
@@ -89,7 +89,7 @@
8989
<NoWarn>NU5105;$(NoWarn)</NoWarn>
9090
<!-- Turn warnings into errors in CI or Release builds -->
9191
<WarningsAsErrors Condition="$(CI) or '$(Configuration)' == 'Release'">true</WarningsAsErrors>
92-
</PropertyGroup>
92+
</PropertyGroup>
9393

9494
<PropertyGroup Label="Version">
9595
<!-- Versioning: when building locally, it's always 42.42.42.

‎src/Directory.Build.targets

+13-5
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,22 @@
6060

6161
<!-- Make sure the source control info is available before calling source generators -->
6262
<Target Name="EnsureProjectInformation"
63-
BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun"
63+
BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun"
64+
AfterTargets="InitializeSourceControlInformation"
6465
DependsOnTargets="InitializeSourceControlInformation">
66+
6567
<PropertyGroup Condition="'$(SourceControlInformationFeatureSupported)' == 'true'">
6668
<!-- The project must specify PublishRepositoryUrl=true in order to publish the URL, in order to prevent inadvertent leak of internal URL. -->
6769
<RepositoryUrl Condition="'$(RepositoryUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(PrivateRepositoryUrl)</RepositoryUrl>
70+
</PropertyGroup>
71+
72+
<PropertyGroup Condition="'$(SourceRevisionId)' != ''">
6873
<RepositoryCommit Condition="'$(RepositoryCommit)' == ''">$(SourceRevisionId)</RepositoryCommit>
69-
<RepositorySha Condition="'$(SourceRevisionId)' != ''">$(SourceRevisionId.Substring(0, 9))</RepositorySha>
70-
</PropertyGroup>
74+
<RepositorySha Condition="'$(RepositorySha)' == ''">$(SourceRevisionId.Substring(0, 9))</RepositorySha>
75+
<!-- This allows the commit label added to the InformationalVersion to be the short sha instead :) -->
76+
<SourceRevisionId>$(RepositorySha)</SourceRevisionId>
77+
</PropertyGroup>
78+
7179
</Target>
7280

7381
<!-- Always append the link to the direct source tree for the current build -->
@@ -78,9 +86,9 @@
7886
'$(IsPackable)' == 'true'">
7987
<PropertyGroup>
8088
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(RepositoryUrl)</PackageProjectUrl>
81-
<Description Condition="'$(SourceRevisionId)' != '' and '$(RepositoryUrl)' != ''">$(Description)
89+
<Description Condition="'$(RepositorySha)' != '' and '$(RepositoryUrl)' != ''">$(Description)
8290

83-
Built from $(RepositoryUrl)/tree/$(SourceRevisionId.Substring(0, 9))
91+
Built from $(RepositoryUrl)/tree/$(RepositorySha)
8492
</Description>
8593
<PackageDescription>$(Description)</PackageDescription>
8694
</PropertyGroup>

‎support.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Support
2+
3+
Support is typically available thorugh GitHub Discussions and Issues.
4+
5+
**Found a bug? File an issue.** If you found something that isn't working as expected and you can reproduce it, go to the repo Issues tab and file an issue.
6+
7+
**Want a new feature? Start a discussion.** It's always good to start a discussion (Discussion tab in the project, Ideas category) to explain the problem you're trying to solve before jumping in with the pull request. We may already have a solution in place or have an idea on ways to solve that issue. After the details are nailed down, we will migrate the discussion to a proper Issue (with the `enhancement`) label. At that point, we'd love to see your PRs :).
8+
9+
Consider [sponsoring](https://github.com/sponsors/devlooped) the project to get priority support and many other perks!

0 commit comments

Comments
 (0)
Please sign in to comment.