Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp committed Jul 9, 2022
1 parent c47f558 commit ebba66a
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on: [push]

jobs:
build:

strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
dotnet: [6.0.200]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet run --project build/Build.fsproj
43 changes: 43 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish

on:
push:
tags:
- 'v*' # Publish on any new tag starting with v

jobs:
build:

strategy:
matrix:
os: [ubuntu-latest]
dotnet: [6.0.200]
runs-on: ${{ matrix.os }}

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

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}

- name: Restore tools
run: dotnet tool restore

- name: Publish to NuGet
run: dotnet run --project build/Build.fsproj -- Push
env:
nuget-key: ${{ secrets.NUGET_KEY }}

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: build
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: build/out/*.nupkg
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///workspace/Saturn.Template/.github/workflows/build.yaml"
}
}
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 1.0.0 - 09.07.2022

* .NET 6 support

#### 0.12.1.1 - 19.04.2020
* Modernize template infrastructure - use .Net SDK local tools
* Use `Saturn.Cli` tool
Expand Down
1 change: 0 additions & 1 deletion build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ let init args =
[
"Clean"
==> "Pack"
==> "ReleaseGitHub"
==> "Push"
==> "Release"
]
Expand Down

0 comments on commit ebba66a

Please sign in to comment.