Skip to content

Commit

Permalink
Convert to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Feb 18, 2022
1 parent dd885ec commit 31ac969
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 93 deletions.
135 changes: 135 additions & 0 deletions .github/workflows/BuildAndPack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_BuildAndPack --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------

name: BuildAndPack

on:
push:
branches:
- master
- main
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test PushToNuGet'
run: ./build.cmd Clean Test PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: artifacts
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test PushToNuGet'
run: ./build.cmd Clean Test PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: artifacts
macOS-latest:
name: macOS-latest
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Run './build.cmd Clean Test PushToNuGet'
run: ./build.cmd Clean Test PushToNuGet
env:
GithubToken: ${{ secrets.GITHUB_TOKEN }}
NuGetToken: ${{ secrets.NUGET_TOKEN }}
MSBuildEnableWorkloadResolver: false
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: artifacts
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
# NetEscapades.Configuration

[![AzurePipelines](https://dev.azure.com/andrewlock/NetEscapades.Configuration/_apis/build/status/andrewlock.NetEscapades.Configuration?branchName=master)](https://dev.azure.com/andrewlock/NetEscapades.Configuration/_build/latest?definitionId=1)

[![AppVeyor build status][appveyor-badge]](https://ci.appveyor.com/project/andrewlock/netescapades-configuration)

[![NuGet][yaml-nuget-badge]][yaml-nuget]
[![NuGet][remote-nuget-badge]][remote-nuget]
[![NuGet][vault-nuget-badge]][vault-nuget]

[![MyGet][yaml-myget-badge]][yaml-myget]
[![MyGet][remote-myget-badge]][remote-myget]
[![MyGet][vault-myget-badge]][vault-myget]

[appveyor-badge]: https://ci.appveyor.com/api/projects/status/9klf04bxncm2pgm4?svg=true

[yaml-nuget]: https://www.nuget.org/packages/NetEscapades.Configuration.Yaml/
[yaml-nuget-badge]: https://img.shields.io/nuget/v/NetEscapades.Configuration.Yaml.svg?label=NetEscapades.Configuration.Yaml

Expand All @@ -23,13 +13,6 @@
[vault-nuget]: https://www.nuget.org/packages/NetEscapades.Configuration.Vault/
[vault-nuget-badge]: https://img.shields.io/nuget/v/NetEscapades.Configuration.Vault.svg?label=NetEscapades.Configuration.Vault

[yaml-myget]: https://www.myget.org/feed/andrewlock-ci/package/nuget/NetEscapades.Configuration.Yaml
[yaml-myget-badge]: https://img.shields.io/myget/andrewlock-ci/v/NetEscapades.Configuration.Yaml.svg?label=MyGet+Yaml
[remote-myget]: https://www.myget.org/feed/andrewlock-ci/package/nuget/NetEscapades.Configuration.Remote
[remote-myget-badge]: https://img.shields.io/myget/andrewlock-ci/v/NetEscapades.Configuration.Remote.svg?label=MyGet+Remote
[vault-myget]: https://www.myget.org/feed/andrewlock-ci/package/nuget/NetEscapades.Configuration.Vault
[vault-myget-badge]: https://img.shields.io/myget/andrewlock-ci/v/NetEscapades.Configuration.Vault.svg?label=MyGet+Vault

Additional configuration providers to use with ASP.NET Core `Microsoft.Extensions.Configuration`.

## YAML configuration provider
Expand Down
42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

34 changes: 0 additions & 34 deletions azure-pipelines.yml

This file was deleted.

Empty file modified build.cmd
100644 → 100755
Empty file.
Empty file modified build.ps1
100644 → 100755
Empty file.

0 comments on commit 31ac969

Please sign in to comment.