Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Bump files with dotnet-file sync
Browse files Browse the repository at this point in the history
# devlooped/oss

- Don't collect logs anymore devlooped/oss@6bd81a3
- Don't run build when changing docs devlooped/oss@db76fb9
- 🔨 Populate RepositoryBranch in CI w/MSBuild devlooped/oss@55c0b32
- Allow manually running changelog and dotnet-file workflows devlooped/oss@084aa7c
- Don't fail the build if sleet finds no packages to push devlooped/oss@6928fc7
- Allow manually running builds devlooped/oss@fc5889d
- Add need info as excluded label for changelog generation devlooped/oss@b20b309
- Don't generate unreleased section by default devlooped/oss@a7ab5fe
- Add bydesign to excluded labels from changelog devlooped/oss@b92dfed
- Use full name as Author, since Owner is already kzu devlooped/oss@0fc6e0e
- Only include/pack icon.png if it exists in the default location devlooped/oss@ae442c0
- Preserve transitively copied content in VS devlooped/oss@52d6c40
- Generate API documentation for non-tests projects by default devlooped/oss@32213f2
- Escape double quotes from changelog devlooped/oss@2b73cb3
- Replace double quotes with single quotes devlooped/oss@0cbe576
- Replace 'undefined' JSON keyword devlooped/oss@b07aaab
- If PackAsTool=true, default IsPackable=true, for obvious reasons devlooped/oss@fde1f6f
- Automatically label dotnet-file bump and auto-delete branch devlooped/oss@eeaeb55
- Improve default rendering of header icon devlooped/oss@9db26e2
- Scale sponsors logo to 36px, which makes it more suitable for readmes devlooped/oss@f566e8a
- Remove unnecessary viewbox in logo devlooped/oss@491c6ee

# devlooped/.github

- Allow overriding target pages org devlooped/.github@8f41377
- Improve overriding and defaulting for token too devlooped/.github@245ad41
- Allow running pages workflow manually devlooped/.github@4234724
- Pages access token should always come from secrets devlooped/.github@e8f3774
  • Loading branch information
kzu committed Aug 30, 2021
1 parent d3a00b2 commit 209e633
Show file tree
Hide file tree
Showing 13 changed files with 120 additions and 142 deletions.
94 changes: 8 additions & 86 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ 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 @@ -47,20 +52,14 @@ 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: 🔼 packages
uses: actions/upload-artifact@v2
with:
name: bin
path: bin/*.nupkg

# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
Expand All @@ -69,80 +68,3 @@ jobs:
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" || echo "No packages found"
acceptance:
name: acceptance-${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 🤘 checkout
uses: actions/checkout@v2

- name: 🔽 packages
uses: actions/download-artifact@v2
with:
name: bin
path: bin

- name: 🧪 test
run: dotnet test -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
working-directory: src/Acceptance

preview:
defaults:
run:
shell: pwsh
needs: dotnet-format
runs-on: windows-latest

steps:
- name: 🤘 checkout
uses: actions/checkout@v2

# > VS Preview
- name: 🔽 dotnet-vs
run: dotnet tool update -g dotnet-vs
- name: 🔽 vs preview
run: vs install preview --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
- name: ≥ msbuild
run: echo "$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin" >> $env:GITHUB_PATH
# < VS Preview

- name: ⚙ curl
run: |
iwr -useb get.scoop.sh | iex
scoop install curl
- name: 🔍 status for PR
if: ${{ github.event.pull_request.head.sha }}
run: echo "STATUS_SHA=${{ github.event.pull_request.head.sha }}" >> $env:GITHUB_ENV

- name: 🔍 status for branch
if: ${{ !github.event.pull_request.head.sha }}
run: echo "STATUS_SHA=$($env:GITHUB_SHA)" >> $env:GITHUB_ENV

- name: ⌛ wait on build
env:
CHECK: build-windows-latest
SHA: ${{ env.STATUS_SHA }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./.github/workflows/wait-status.ps1

- name: ⌛ wait on acceptance
env:
CHECK: acceptance-windows-latest
SHA: ${{ env.STATUS_SHA }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./.github/workflows/wait-status.ps1

- name: 🔽 packages
uses: actions/download-artifact@v2
with:
name: bin
path: bin

- name: 🧪 test
run: msbuild -r -t:build,test -p:TargetFramework=net472 -p:VersionLabel="$($env:GITHUB_REF).$($env:GITHUB_RUN_NUMBER)"
working-directory: src/Acceptance
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
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
ConvertFrom-Json |
select -ExpandProperty id
$notes = (Get-Content .\changelog.md | where { !($_ -like '\*') } | %{ $_.replace('\', '\\') }) -join '\n'
$notes = (Get-Content .\changelog.md | where { !($_ -like '\*') } | %{ $_.replace('\', '\\').replace('"', "'").replace('undefined', 'un-defined') }) -join '\n'
$headers = @{ 'Accept'='application/vnd.github.v3+json;charset=utf-8'; 'Authorization' = "bearer $env:GITHUB_TOKEN" }
$body = '{ "body":"' + $notes + '" }'
Expand All @@ -53,4 +53,4 @@ jobs:
iwr -Body $body "$env:GITHUB_API_URL/repos/$env:GITHUB_REPOSITORY/releases/$id" -Method PATCH -Headers $headers |
select -ExpandProperty Content |
ConvertFrom-Json |
ConvertTo-Json
ConvertTo-Json
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=bydesign;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
48 changes: 24 additions & 24 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@

[file ".github/workflows/build.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
sha = 4bc9de2ce63f083c2805752a25c5997ebc102aeb
etag = 16edbc0d7121c2527f0e62d441bbb4ac2b1ffc7e25ccd4b3d0611c0c86716520
sha = fc5889d5387e2d5aa7aba279b2aa12251cf08cb2
etag = 91e9a208cd134bd7b71d7419800c613bc50a30e21e605607528721f2acdeab86
weak

[file ".github_changelog_generator"]
url = https://github.com/devlooped/oss/blob/main/.github_changelog_generator
sha = cf52375fd20c6df894f1518890693312d4c4c11c
etag = 115efcd056eaca2f1d2df510eb7632ac3558ace2734a4139b77536b8211dfe41
sha = b92dfed302a3da2630b6243a46c3d89b3007adaa
etag = 0b4d83a50ec36784192f4cba2eb2e84aef663601420614294d490e2cc0d2df4d
weak

[file ".gitignore"]
Expand Down Expand Up @@ -100,14 +100,14 @@

[file "src/Directory.Build.props"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
sha = c9924b558ddeafb2cb547a7fcbc18aa7ae292ad1
etag = dc86d6818b98a7426c604039a07e134d61c8c598f1ceedb9e0e481fa0f93385d
sha = 32213f2169e34df06da3e1589e52186f2cf57baf
etag = afbaf6c253fd1a427ace8405cca937b62a60328c218ca794f501dc66cdf81180
weak

[file "src/Directory.Build.targets"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
sha = e7de4d0e790f9fe58f31308f95886884b6c5805f
etag = 9956aef0f3becce22fc1dc4e68dd218d5ba3c23de2b106c4ad006ad321cacc4a
sha = fde1f6f17926f429a52e64de5ec355bb643e25bc
etag = 126357bbdcfd2ee087986bd27f1817926f6585fba7eda4c9acb36975474fd1b7
weak

[file "src/kzu.snk"]
Expand All @@ -118,8 +118,8 @@

[file ".github/workflows/pages.yml"]
url = https://github.com/devlooped/.github/blob/main/.github/workflows/pages.yml
sha = f2dc1370469bec1b2d32d82faf659b050cdc7e2a
etag = f2bc91354dc634de00aa9f502eb69e34368c315bcdbe422cde95ddd850d31669
sha = e8f3774884afda36ac177c4193929d24d7901de9
etag = 42fdc888e07b492cccc6fd29972bd9ea6f13691a3fdf057e07f3f8eec9330b7a
weak

[file ".github/workflows/sponsors.yml"]
Expand All @@ -142,8 +142,8 @@

[file "assets/css/style.scss"]
url = https://github.com/devlooped/oss/blob/main/assets/css/style.scss
sha = b5583942b012f42f5ac2d06200427070cc18c250
etag = 2c86a074a6c8c2f6af806908a57215439fad563830b4af8fbed1a3aabaede0cf
sha = 9db26e2710b084d219d6355339d822f159bf5780
etag = f710d8919abfd5a8d00050b74ba7d0bb05c6d02e40842a3012eb96555c208504
weak

[file "assets/images/sponsors.png"]
Expand All @@ -154,8 +154,8 @@

[file "assets/images/sponsors.svg"]
url = https://github.com/devlooped/oss/blob/main/assets/images/sponsors.svg
sha = bf7b4569981b558b130bdd3ce93043d624a567d8
etag = 182780a2d68bdba9069000aef75712ab81c307eee1317bcd29d35563f523ba98
sha = 491c6ee4ed880dc92012dee9b1c4e7d3e9d14115
etag = d545e385f5b7db32d12a15905e0173246953cc0efdce0595a67cf9544e0a4fed
weak

[file "support.md"]
Expand All @@ -166,30 +166,30 @@

[file ".github/workflows/changelog.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.yml
sha = 169dfb51e7fa3f05cbfe01ca0342c0729f69b481
etag = 2478e00a02849f0a65287d44028eb3c9f99ee0c0529cddaa88088765abc5da0b
sha = 084aa7c36ee1c262ea2f9e83931068366a7b4312
etag = 1e17c477f9e26f83367870a18e3727a71dcbb49cd31d85e0cfcfe092202d3a66
weak

[file ".github/workflows/publish.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
sha = e68624389d8133571da53e83ab4e88de7bc028a8
etag = 8067230717247263ad661c69780fdfdf4b6f140287517fee9c5d4e64d4b737af
sha = 55c0b32601e94e1eed35028a0cad510c6bcbb265
etag = ad8681ee3f191f796944135772b74565c470e349464e793aa664c888f7784b7a
weak

[file ".github/workflows/release-artifacts.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-artifacts.yml
sha = e68624389d8133571da53e83ab4e88de7bc028a8
etag = 8be10a2fbeb9e6924d8b08e58a61a0f69138352c6f5477b53dcd34c26d8d35ef
sha = 55c0b32601e94e1eed35028a0cad510c6bcbb265
etag = 53f2dd2465fd15a065828468139544449ab7ccc0ba40f9074d7ac92426bfd07b
weak

[file ".github/workflows/release-notes.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-notes.yml
sha = 70bc909d2ce6924385a8bcc3a9fb1cff338a3fb7
etag = c987e5b93b002c5a2a63304f677eb969b7b6e274b77ef4392aeef4d9ca7e10dd
sha = b07aaab94cccdaa7cd42eb17c0390ffacb6fbee8
etag = b01d73895c1f62e16cfd2a78e36bbf82c4d1332ed747c50002695997b92caf58
weak

[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
Loading

0 comments on commit 209e633

Please sign in to comment.