Skip to content

Commit

Permalink
Merge branch 'main' into dev/2022
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu authored Aug 10, 2021
2 parents 89d208e + ab333dc commit 5d111aa
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 76 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@

name: build
on:
workflow_dispatch:
push:
branches: [ main, dev, 'feature/*', 'rel/*' ]
paths-ignore:
- changelog.md
- code-of-conduct.md
- security.md
- support.md
pull_request:
types: [opened, synchronize, reopened]

Expand Down Expand Up @@ -46,28 +52,19 @@ jobs:
fetch-depth: 0

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

- 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
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m

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

- name: 🔼 logs
if: always()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}
path: |
**/*.binlog
logs/**/*.*
# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
run: |
dotnet tool install -g --version 4.0.18 sleet
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure"
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"
1 change: 1 addition & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
on:
release:
types: [released]
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dotnet-file.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Synchronizes .netconfig-configured files with dotnet-file
name: dotnet-file
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
Expand Down Expand Up @@ -50,6 +51,8 @@ jobs:
with:
base: main
branch: dotnet-file-sync
delete-branch: true
labels: dependencies
commit-message: Bump files with dotnet-file sync

${{ env.CHANGES }}
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: pages
on:
workflow_dispatch:
push:
branches:
- main
- pages

env:
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }}
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }}

jobs:
gh-pages:
runs-on: ubuntu-latest
Expand All @@ -17,11 +22,20 @@ jobs:
sudo gem install bundler
bundle install
- name: 🖉 repo
run: echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: 🖉 default env
env:
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }}
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }}
run: |
echo "PAGES_ORGANIZATION=${PAGES_ORGANIZATION}" >> $GITHUB_ENV
echo "PAGES_REPOSITORY=${PAGES_REPOSITORY}" >> $GITHUB_ENV
- name: 🖉 default repo
if: env.PAGES_REPOSITORY == ''
run: echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV

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

Expand All @@ -30,15 +44,15 @@ jobs:
cd _site
git init
git add -A
git config --local user.email "hello@clarius.org"
git config --local user.name "GitHub Action"
git config --local user.email "bot@devlooped.com"
git config --local user.name "bot@devlooped.com"
git commit -m "Publish pages from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
- name: 🚀 push
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.CLARIUS_ACCESS_TOKEN }}
repository: clarius/${{ env.REPOSITORY }}
github_token: ${{ secrets.PAGES_ACCESS_TOKEN }}
repository: ${{ env.PAGES_ORGANIZATION }}/${{ env.PAGES_REPOSITORY }}
branch: gh-pages
force: true
directory: ./_site
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@ jobs:
fetch-depth: 0

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

- 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} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: 🔼 logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: '**/*.binlog'
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}

- name: 🚀 nuget
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
10 changes: 2 additions & 8 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ jobs:
run: echo "CURRENT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

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

- 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} -p:RepositoryBranch=${GITHUB_REF#refs/*/}

- name: 🔼 logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: '**/*.binlog'
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}

- name: 🔽 gh
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github_changelog_generator
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ usernames-as-github-logins=true
header-label=
issues_wo_labels=true
pr_wo_labels=true
exclude-labels=dependencies,duplicate,question,invalid,wontfix
exclude-labels=dependencies,duplicate,question,invalid,wontfix,need info
enhancement-label=:sparkles: Implemented enhancements:
bugs-label=:bug: Fixed bugs:
issues-label=:hammer: Other:
pr-label=:twisted_rightwards_arrows: Merged:
unreleased=false
40 changes: 20 additions & 20 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
[file ".github/workflows/build.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
weak
etag = 16edbc0d7121c2527f0e62d441bbb4ac2b1ffc7e25ccd4b3d0611c0c86716520
sha = 4bc9de2ce63f083c2805752a25c5997ebc102aeb
etag = 91e9a208cd134bd7b71d7419800c613bc50a30e21e605607528721f2acdeab86
sha = fc5889d5387e2d5aa7aba279b2aa12251cf08cb2
[file ".github_changelog_generator"]
url = https://github.com/devlooped/oss/blob/main/.github_changelog_generator
etag = 115efcd056eaca2f1d2df510eb7632ac3558ace2734a4139b77536b8211dfe41
etag = 44dc852588ec508eaed9cefe260618eb162f0db50495188fc3c4e266b41944e2
weak
sha = cf52375fd20c6df894f1518890693312d4c4c11c
sha = a7ab5fe706fdfe1efb05d47d00ef4bb137088669
[file ".gitignore"]
url = https://github.com/devlooped/oss/blob/main/.gitignore
etag = 925782b685859e07040442303b411bebd1c75b4fe4e075f547e067f33f323814
Expand Down Expand Up @@ -77,14 +77,14 @@
sha = a0f58a6d63e48ae6e55944c556d0bc94476dc8df
[file "src/Directory.Build.props"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
etag = 16762b7a7fbdc00c1912c469962131c912856115826db7628167517eea918324
etag = ae2606c157b9725ce8c707e30d9768fb0bad901ac34065d3cd75fc2bdbc5f8cf
weak
sha = 16ac2f336b14d6b340b10fa162242a9742eb08fc
sha = 52d6c40aaa460ac48fc74c03324c6b1db7ae170d
[file "src/Directory.Build.targets"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
etag = af2cf67157f42ab43a0082cbf876aa4cc46e167e6e6df6c05e9aaf36ffb23cc8
etag = 874f20853c983e6440ed67bb571d94927f9fb4cd4438585b07df7b420c664609
weak
sha = 6edd918283051b5179f6255556d254654acc5b8c
sha = 55c0b32601e94e1eed35028a0cad510c6bcbb265
[file "src/kzu.snk"]
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk
etag = b8d789b5b6bea017cdcc8badcea888ad78de3e34298efca922054e9fb0e7b6b9
Expand All @@ -102,24 +102,24 @@
sha = a0f58a6d63e48ae6e55944c556d0bc94476dc8df
[file "assets/css/style.scss"]
url = https://github.com/devlooped/oss/blob/main/assets/css/style.scss
etag = 2c86a074a6c8c2f6af806908a57215439fad563830b4af8fbed1a3aabaede0cf
etag = f710d8919abfd5a8d00050b74ba7d0bb05c6d02e40842a3012eb96555c208504
weak
sha = b5583942b012f42f5ac2d06200427070cc18c250
sha = 9db26e2710b084d219d6355339d822f159bf5780
[file ".github/workflows/changelog.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.yml
etag = 2478e00a02849f0a65287d44028eb3c9f99ee0c0529cddaa88088765abc5da0b
etag = 1e17c477f9e26f83367870a18e3727a71dcbb49cd31d85e0cfcfe092202d3a66
weak
sha = 169dfb51e7fa3f05cbfe01ca0342c0729f69b481
sha = 084aa7c36ee1c262ea2f9e83931068366a7b4312
[file ".github/workflows/publish.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
etag = 8067230717247263ad661c69780fdfdf4b6f140287517fee9c5d4e64d4b737af
etag = ad8681ee3f191f796944135772b74565c470e349464e793aa664c888f7784b7a
weak
sha = e68624389d8133571da53e83ab4e88de7bc028a8
sha = 55c0b32601e94e1eed35028a0cad510c6bcbb265
[file ".github/workflows/release-artifacts.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-artifacts.yml
etag = 8be10a2fbeb9e6924d8b08e58a61a0f69138352c6f5477b53dcd34c26d8d35ef
etag = 53f2dd2465fd15a065828468139544449ab7ccc0ba40f9074d7ac92426bfd07b
weak
sha = e68624389d8133571da53e83ab4e88de7bc028a8
sha = 55c0b32601e94e1eed35028a0cad510c6bcbb265
[file ".github/workflows/release-notes.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-notes.yml
etag = c987e5b93b002c5a2a63304f677eb969b7b6e274b77ef4392aeef4d9ca7e10dd
Expand All @@ -133,9 +133,9 @@
skip
[file ".github/workflows/pages.yml"]
url = https://github.com/devlooped/.github/blob/main/.github/workflows/pages.yml
etag = f2bc91354dc634de00aa9f502eb69e34368c315bcdbe422cde95ddd850d31669
etag = 42fdc888e07b492cccc6fd29972bd9ea6f13691a3fdf057e07f3f8eec9330b7a
weak
sha = f2dc1370469bec1b2d32d82faf659b050cdc7e2a
sha = e8f3774884afda36ac177c4193929d24d7901de9
[file ".github/workflows/sponsors.ps1"]
url = https://github.com/devlooped/.github/blob/main/.github/workflows/sponsors.ps1
etag = 57a303125f3367b68ad0700d89ff4ba57cb29b33b303903488c9c8638d0bf735
Expand All @@ -153,6 +153,6 @@
sha = f2dc1370469bec1b2d32d82faf659b050cdc7e2a
[file ".github/workflows/dotnet-file.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-file.yml
sha = 094043587f7e7313a0a77dece1532fbcb1ce8555
etag = 15333d15756257ec2d7975ea3ba5a22d1e3fae98aab35d83d67a728628e90cea
sha = 084aa7c36ee1c262ea2f9e83931068366a7b4312
etag = 501f8bf58287fdd7467701342f7251a015bc29664b494e7d81a71c0c55bee61f
weak
11 changes: 10 additions & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ pre, code {

code {
font-size: 0.80em;
}
}

h1 > img {
border: unset;
box-shadow: unset;
vertical-align: middle;
-moz-box-shadow: unset;
-o-box-shadow: unset;
-ms-box-shadow: unset;
}
36 changes: 21 additions & 15 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
</PropertyGroup>

<PropertyGroup Label="NuGet">
<Authors>kzu</Authors>
<Authors>Daniel Cazzulino</Authors>
<Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<PackageIcon Condition="Exists('$(MSBuildThisFileDirectory)icon.png')">icon.png</PackageIcon>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateRepositoryUrlAttribute>true</GenerateRepositoryUrlAttribute>
Expand All @@ -41,7 +41,8 @@
<None Include="$(MSBuildThisFileDirectory)icon.png" Link="icon.png"
Pack="true"
Visible="false"
PackagePath="%(Filename)%(Extension)" />
PackagePath="%(Filename)%(Extension)"
Condition="Exists('$(MSBuildThisFileDirectory)icon.png')" />
</ItemGroup>

<PropertyGroup Label="Build">
Expand All @@ -63,18 +64,6 @@
<!-- We typically don't want these files shown in the solution explorer -->
<DefaultItemExcludes>$(DefaultItemExcludes);*.binlog;*.zip;*.rsp;*.items;**/TestResults/**/*.*</DefaultItemExcludes>

<!-- We use a single oss signing key for consumers that need strong-named assemblies -->
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)kzu.snk</AssemblyOriginatorKeyFile>
<!-- These properties make it easier to add internals visible to other projects, even when signing is involved.
For example, you can simply add:
<InternalsVisibleTo Include="MyProject.UnitTests" />
and the key will be appended automatically.
-->
<PublicKey>002400000480000094000000060200000024000052534131000400000100010051155fd0ee280be78d81cc979423f1129ec5dd28edce9cd94fd679890639cad54c121ebdb606f8659659cd313d3b3db7fa41e2271158dd602bb0039a142717117fa1f63d93a2d288a1c2f920ec05c4858d344a45d48ebd31c1368ab783596b382b611d8c92f9c1b3d338296aa21b12f3bc9f34de87756100c172c52a24bad2db</PublicKey>
<PublicKeyToken>00352124762f2aa5</PublicKeyToken>
<SignAssembly>true</SignAssembly>

<EnableSourceLink>true</EnableSourceLink>
<EnableSourceControlManagerQueries>true</EnableSourceControlManagerQueries>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand All @@ -90,6 +79,23 @@
<NoWarn>NU5105;$(NoWarn)</NoWarn>
<!-- Turn warnings into errors in CI or Release builds -->
<WarningsAsErrors Condition="$(CI) or '$(Configuration)' == 'Release'">true</WarningsAsErrors>

<!-- Preserve transitively copied content in VS: https://github.com/dotnet/msbuild/issues/1054#issuecomment-847959047 -->
<MSBuildCopyContentTransitively>true</MSBuildCopyContentTransitively>
</PropertyGroup>

<PropertyGroup Label="StrongName" Condition="Exists('$(MSBuildThisFileDirectory)kzu.snk')">
<!-- We use a single oss signing key for consumers that need strong-named assemblies -->
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)kzu.snk</AssemblyOriginatorKeyFile>
<!-- These properties make it easier to add internals visible to other projects, even when signing is involved.
For example, you can simply add:
<InternalsVisibleTo Include="MyProject.UnitTests" />
and the key will be appended automatically.
-->
<PublicKey>002400000480000094000000060200000024000052534131000400000100010051155fd0ee280be78d81cc979423f1129ec5dd28edce9cd94fd679890639cad54c121ebdb606f8659659cd313d3b3db7fa41e2271158dd602bb0039a142717117fa1f63d93a2d288a1c2f920ec05c4858d344a45d48ebd31c1368ab783596b382b611d8c92f9c1b3d338296aa21b12f3bc9f34de87756100c172c52a24bad2db</PublicKey>
<PublicKeyToken>00352124762f2aa5</PublicKeyToken>
<SignAssembly>true</SignAssembly>
</PropertyGroup>

<PropertyGroup Label="Version">
Expand Down
Loading

0 comments on commit 5d111aa

Please sign in to comment.