diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..6b8b540 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000..6330ed3 --- /dev/null +++ b/.github/workflows/push.yaml @@ -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/upload-artifact@v2.3.1 + with: + path: build + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: build/out/*.nupkg + token: ${{ secrets.GITHUB_TOKEN }} + generateReleaseNotes: true diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8a14c82 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/github-workflow.json": "file:///workspace/Saturn.Template/.github/workflows/build.yaml" + } +} \ No newline at end of file diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 2e5b89f..18f40bd 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -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 diff --git a/build/build.fs b/build/build.fs index 7288080..02507a4 100644 --- a/build/build.fs +++ b/build/build.fs @@ -112,7 +112,6 @@ let init args = [ "Clean" ==> "Pack" - ==> "ReleaseGitHub" ==> "Push" ==> "Release" ]