Skip to content

Commit

Permalink
⭮ Switch to devlooped/oss template repo upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Dec 22, 2020
1 parent e0de311 commit 77e79a2
Show file tree
Hide file tree
Showing 15 changed files with 183 additions and 59 deletions.
5 changes: 1 addition & 4 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
custom: https://paypal.me/kzu
patreon: danielkzu
open_collective: kzu
liberapay: kzu
github: devlooped
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,23 @@ defaults:
shell: bash

jobs:
dotnet-format:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
- name: ⚙ dotnet 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: ✓ ensure format
run: |
dotnet tool update -g --version 4.1.* dotnet-format
dotnet format -f src --check -v:diag
build:
name: build-${{ matrix.os }}
needs: dotnet-format
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -42,27 +57,22 @@ jobs:
with:
dotnet-version: 2.1.x

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

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

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

- name: 🔼 logs
if: always()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}
path: |
*.binlog
**/*.binlog
logs/**/*.*
# Only push CI package to sleet feed if building on ubuntu (fastest)
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: pages
on:
push:
branches:
- main
- pages

jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2

- name: ⚙ jekyll
run: |
sudo gem install bundler
bundle install
- name: 🖉 repo
run: echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV

- name: 🙏 build
run: bundle exec jekyll build -b ${{ env.REPOSITORY }}
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: ✓ commit
run: |
cd _site
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Publish ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
- name: 🚀 push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.CLARIUS_ACCESS_TOKEN }}
repository: clarius/${{ env.REPOSITORY }}
branch: gh-pages
force: true
directory: ./_site
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ jobs:
dotnet-version: 2.1.x

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

- name: 🧪 test
run: dotnet test --no-build -m:1

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

- name: 🔼 logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: '*.binlog'
path: '**/*.binlog'

- name: 🚀 nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ pack
.nuget
*.lock.json
*.nuget.props
*.nuget.targets
*.nuget.targets

node_modules
_site
.jekyll-metadata
.jekyll-cache
Gemfile.lock
package-lock.json
88 changes: 56 additions & 32 deletions .netconfig
Original file line number Diff line number Diff line change
@@ -1,92 +1,116 @@
[file]
url = https://github.com/kzu/oss
url = https://github.com/devlooped/oss
[file "readme.md"]
url = https://github.com/kzu/oss/blob/main/readme.md
url = https://github.com/devlooped/oss/blob/main/readme.md
skip
etag = 1963a9db5d9ee9a89da7ec5f00c4c7daf10862f10e31583b05716697e7e75526
weak
[file "src/icon.png"]
url = https://github.com/kzu/oss/blob/main/src/icon.png
url = https://github.com/devlooped/oss/blob/main/src/icon.png
skip
etag = 8b42109e3bd1da0fc50c67679c6d20aeac98f922870675e127cf19b8f2919971
weak
[file ".editorconfig"]
url = https://github.com/kzu/oss/blob/main/.editorconfig
url = https://github.com/devlooped/oss/blob/main/.editorconfig
etag = 985aa022503959d35b03c870f07ae604cead7580d260775235ef6665aa9a6cbe
weak
[file ".gitattributes"]
url = https://github.com/kzu/oss/blob/main/.gitattributes
url = https://github.com/devlooped/oss/blob/main/.gitattributes
etag = 7acb32f5fa6d4ccd9c824605a7c2b8538497f0068c165567807d393dcf4d6bb7
weak
[file ".github/FUNDING.yml"]
url = https://github.com/kzu/oss/blob/main/.github/FUNDING.yml
etag = dbc0e0c56e48bf06a70f50ba2fdaf6f048bb81ac8558b743c8e919487da3bfcf
url = https://github.com/devlooped/oss/blob/main/.github/FUNDING.yml
etag = f4d02805592d1f86c29acc9da3a40e817fb3611d6ff0f6409f547137f38f65df
weak
[file ".github/ISSUE_TEMPLATE/bug.md"]
url = https://github.com/kzu/oss/blob/main/.github/ISSUE_TEMPLATE/bug.md
url = https://github.com/devlooped/oss/blob/main/.github/ISSUE_TEMPLATE/bug.md
etag = 026852ba1f1921f3a043bb5e09cd7a2c3d9a33ec51f48e524dc3a2ab72de3141
weak
[file ".github/dependabot.yml"]
url = https://github.com/kzu/oss/blob/main/.github/dependabot.yml
url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
etag = 2fc8a0d2b47091b058ae3e1f68333492044b49a684621f4939a0bce5bff869d5
weak
[file ".github/workflows/build.yml"]
url = https://github.com/kzu/oss/blob/main/.github/workflows/build.yml
etag = 4d598303ec512578cff4b6d539929490ec844dd9c0605251bd769adbe120b50d
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
etag = 868172e62b2cac855039731fd1ea929f0a569f675586903450d24bc232c43ea9
weak
[file ".github/workflows/release.yml"]
url = https://github.com/kzu/oss/blob/main/.github/workflows/release.yml
etag = 0142be91e1ec4607aa398975c4e066ea07f9a610b412eaf53f9f2f9d86aa70fc
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release.yml
etag = 9035cfc96bc6340476e196699695b49a19066039e8774497659413f8a8cb8e2a
weak
[file ".github/workflows/tag.yml"]
url = https://github.com/kzu/oss/blob/main/.github/workflows/tag.yml
url = https://github.com/devlooped/oss/blob/main/.github/workflows/tag.yml
etag = 26e271cf76e00c6922552af104b1e496103bdfa75ebef253447594207b10153e
weak
[file ".github_changelog_generator"]
url = https://github.com/kzu/oss/blob/main/.github_changelog_generator
url = https://github.com/devlooped/oss/blob/main/.github_changelog_generator
etag = a724e0cbbad99a04e6cd3738a5f3ec5416dd5f29ae7073e7afe5471e73107e42
weak
[file ".gitignore"]
url = https://github.com/kzu/oss/blob/main/.gitignore
etag = 4698b35abed1f3941de6bed08bc80278c30569de3ead5b878b27b4bb79f8718a
url = https://github.com/devlooped/oss/blob/main/.gitignore
etag = 925782b685859e07040442303b411bebd1c75b4fe4e075f547e067f33f323814
weak
[file "license.txt"]
url = https://github.com/kzu/oss/blob/main/license.txt
url = https://github.com/devlooped/oss/blob/main/license.txt
etag = 2c6335b37e4ae05eea7c01f5d0c9d82b49c488f868a8b5ba7bff7c6ff01f3994
weak
[file "security.md"]
url = https://github.com/kzu/oss/blob/main/security.md
etag = 80070e3a380796b13d180b82f43694eac9e7a29d8d2f8549ccb2920fd5c88828
url = https://github.com/devlooped/oss/blob/main/security.md
etag = fc8101fd914820db3e6b42d608dc46aefbc60c830ac721ed3917daead3727dbd
weak
[file "src/Directory.Build.props"]
url = https://github.com/kzu/oss/blob/main/src/Directory.Build.props
etag = a74681138b2e306cce2cbfc4b73148bb5a060a040abf1d86d9116fa36601a376
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
etag = 1ea71942b9ff7830612ceb3a2927c0d011c54891a7653b07ef01b914347e306f
weak
[file "src/Directory.Build.targets"]
url = https://github.com/kzu/oss/blob/main/src/Directory.Build.targets
etag = 5493a6e0a33cf0efe11b49d71f30bbd2555c4f94924f07a3f39fa47e466b705d
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
etag = 236390b1c5b2576d6d013656e24f6d74a0042a0e4071a19e8c626cf6b7005b54
weak
[file "src/kzu.snk"]
url = https://github.com/kzu/oss/blob/main/src/kzu.snk
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk
etag = b8d789b5b6bea017cdcc8badcea888ad78de3e34298efca922054e9fb0e7b6b9
weak
[file "code-of-conduct.md"]
url = https://github.com/kzu/oss/blob/main/code-of-conduct.md
url = https://github.com/devlooped/oss/blob/main/code-of-conduct.md
etag = 4857c01bb695f09bf6912d778951c3065d9dd565e5de3d0827f40432d0e4c613
weak
[file ".netconfig"]
url = https://github.com/kzu/oss/blob/main/.netconfig
etag = f9bcd2682af965d509ff87ea135ad4a8eaff5a627a6922d67c67e83489e39455
url = https://github.com/devlooped/oss/blob/main/.netconfig
etag = a4820401517318344dda1fee281e7da811483ffc0ec55ca86dac3962a3cdcf3b
weak
[file "Directory.Build.rsp"]
url = https://github.com/kzu/oss/blob/main/Directory.Build.rsp
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
etag = 6a6c6e1d3895df953abf14c82b0899e3eea75cdcd679f6212dcfea15183d73d6
weak
[file "_config.yml"]
url = https://github.com/kzu/oss/blob/main/_config.yml
etag = c7f2063ead734d0afc383a07c35da2864a221311da8e1c0c6fea8939e932d2ab
url = https://github.com/devlooped/oss/blob/main/_config.yml
etag = 9139148f845adf503fd3c3c140eb64421fc476a1f9c027fc50825c0efb05f557
weak
[file ".github/ISSUE_TEMPLATE/config.yml"]
url = https://github.com/kzu/oss/blob/main/.github/ISSUE_TEMPLATE/config.yml
url = https://github.com/devlooped/oss/blob/main/.github/ISSUE_TEMPLATE/config.yml
etag = b5ce64e6967276086eb89f86f57364da9c4deac988c7e0e04810a4f8caaa1400
weak
[file ".github/workflows/pages.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/pages.yml
etag = 3f1fb2481dcb41987d775eb6ed61c10adc00995f287636e7adda3ade5efc94b7
weak
[file "Gemfile"]
url = https://github.com/devlooped/oss/blob/main/Gemfile
etag = d45832acd078778ffebf260000f6d25172a131f51684744d7e982da2a47170ce
weak
[file "assets/css/style.scss"]
url = https://github.com/devlooped/oss/blob/main/assets/css/style.scss
etag = 2c86a074a6c8c2f6af806908a57215439fad563830b4af8fbed1a3aabaede0cf
weak
[file "assets/images/sponsors.png"]
url = https://github.com/devlooped/oss/blob/main/assets/images/sponsors.png
etag = f152d1038eb04cb1596a13377b032f18f2402c969130601384fb377ce5ddefbd
weak
[file "assets/images/sponsors.svg"]
url = https://github.com/devlooped/oss/blob/main/assets/images/sponsors.svg
etag = 182780a2d68bdba9069000aef75712ab81c307eee1317bcd29d35563f523ba98
weak
[file "support.md"]
url = https://github.com/devlooped/oss/blob/main/support.md
etag = 2d47e2fc4fdfa3515203d452674566e3df507461f9938f451a06d79deb687d24
weak
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'github-pages', '~> 209', group: :jekyll_plugins
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
theme: jekyll-theme-slate

exclude: [ 'src/', '*.sln', 'Gemfile*', '*.rsp' ]
17 changes: 17 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
---

@import "jekyll-theme-slate";

.inner {
max-width: 960px;
}

pre, code {
background-color: unset;
font-size: unset;
}

code {
font-size: 0.80em;
}
Binary file added assets/images/sponsors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/images/sponsors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions security.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Reporting a Vulnerability

Security issues and bugs should be reported privately by emailing [email protected].
Security issues and bugs should be reported privately by emailing [email protected].
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
original message and ping [@kzu](https://twitter.com/kzu) on Twitter.
original message and ping [@devlooped](https://twitter.com/devlooped) on Twitter.

Please do not open issues for anything you think might have a security implication.
8 changes: 4 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- The Microsoft.Managed.Core.targets use this property to use deterministic source paths in CI builds -->
<ContinuousIntegrationBuild>$(CI)</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup Label="NuGet">
<Authors>kzu</Authors>
<Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
Expand All @@ -38,8 +38,8 @@

<ItemGroup Label="NuGet">
<!-- This is compatible with nugetizer and SDK pack -->
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
Pack="true"
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
Pack="true"
Visible="false"
PackagePath="%(Filename)%(Extension)" />
</ItemGroup>
Expand Down Expand Up @@ -89,7 +89,7 @@
<NoWarn>NU5105;$(NoWarn)</NoWarn>
<!-- Turn warnings into errors in CI or Release builds -->
<WarningsAsErrors Condition="$(CI) or '$(Configuration)' == 'Release'">true</WarningsAsErrors>
</PropertyGroup>
</PropertyGroup>

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

0 comments on commit 77e79a2

Please sign in to comment.