Skip to content

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
- Automatically label dotnet-file bump and auto-delete branch devlooped/oss@eeaeb55
- Allow manually running changelog and dotnet-file workflows devlooped/oss@084aa7c
- Use full name as Author, since Owner is already kzu devlooped/oss@0fc6e0e
  • Loading branch information
kzu authored May 8, 2021
1 parent 8b9ddfa commit b97a98d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 56 deletions.
40 changes: 18 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ name: build
on:
push:
branches: [ main, dev, 'feature/*', 'rel/*' ]
paths-ignore:
- changelog.md
- code-of-conduct.md
- security.md
- support.md
pull_request:
types: [opened, synchronize, reopened]

env:
DOTNET_NOLOGO: true

defaults:
run:
shell: bash

jobs:
dotnet-format:
runs-on: ubuntu-latest
Expand All @@ -28,46 +37,33 @@ jobs:
dotnet format --check -v:diag
build:
name: build-${{ matrix.os }}
needs: dotnet-format
runs-on: windows-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- name: 🔍 msbuild
uses: microsoft/setup-msbuild@v1
with:
vs-version: '[16.8,)'

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

- name: 🧪 test
run: |
dotnet restore src\NuGetizer.Tests\Scenarios\given_a_packaging_project\a.nuproj
msbuild -t:test
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m

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

- name: 🔼 logs
if: always()
uses: actions/upload-artifact@v2
with:
name: logs
path: |
**/*.binlog
logs/**/*.*
# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
if: env.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"
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: 5 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,22 @@ env:

jobs:
publish:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- name: 🔍 msbuild
uses: microsoft/setup-msbuild@v1
with:
vs-version: '[16.8,)'

- name: \# version
run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
shell: bash

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

- name: 🧪 test
run: |
dotnet restore src\NuGetizer.Tests\Scenarios\given_a_packaging_project\a.nuproj
msbuild -t:test
run: dotnet test --no-build -m:1

- name: 📦 pack
run: dotnet pack -m:1 --no-build -bl:pack.binlog

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

- name: 🚀 nuget
shell: bash
run: dotnet nuget push bin\**\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
20 changes: 10 additions & 10 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
sha = 0683ee777d7d878d4bf013d7deea352685135a05
[file ".github/workflows/build.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
etag = 16edbc0d7121c2527f0e62d441bbb4ac2b1ffc7e25ccd4b3d0611c0c86716520
etag = 980b0b303f209c5b31de5ce6cfdbd769fb5e1aa956f8926a2638f5d37e0521d3
weak
sha = 4bc9de2ce63f083c2805752a25c5997ebc102aeb
sha = db76fb9dd72b42a870f76cdf05b6b74fa32e7751
[file ".github_changelog_generator"]
url = https://github.com/devlooped/oss/blob/main/.github_changelog_generator
etag = 115efcd056eaca2f1d2df510eb7632ac3558ace2734a4139b77536b8211dfe41
Expand Down Expand Up @@ -77,9 +77,9 @@
sha = a0f58a6d63e48ae6e55944c556d0bc94476dc8df
[file "src/Directory.Build.props"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
etag = dc86d6818b98a7426c604039a07e134d61c8c598f1ceedb9e0e481fa0f93385d
etag = c582b53fd97a10eb3f326dda1672be92a8d83b760de93d6a952b2d7e12055fb6
weak
sha = c9924b558ddeafb2cb547a7fcbc18aa7ae292ad1
sha = 0fc6e0ebd01d48d92f995541b6277edefa747606
[file "src/Directory.Build.targets"]
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
etag = 9956aef0f3becce22fc1dc4e68dd218d5ba3c23de2b106c4ad006ad321cacc4a
Expand Down Expand Up @@ -117,18 +117,18 @@
sha = a0f58a6d63e48ae6e55944c556d0bc94476dc8df
[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/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
[file ".github/workflows/publish.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
sha = e68624389d8133571da53e83ab4e88de7bc028a8
etag = 8067230717247263ad661c69780fdfdf4b6f140287517fee9c5d4e64d4b737af
sha = 6bd81a32950b02166c97144a6c158e0516b04ed4
etag = 6dfba9878f876f2c5c6fb1c467ddfd52f0567c4ce3a77cdfdc72b704e9be86e6
weak
[file ".github/workflows/release-artifacts.yml"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/release-artifacts.yml
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</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>
Expand Down

0 comments on commit b97a98d

Please sign in to comment.