diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6611f56b..5d26ab04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,28 +2,30 @@ name: Build on: push: + branches: + - main + - develop + - "feature/**" + - "release/**" + - "hotfix/**" + tags: + - "*" paths-ignore: - "README.md" pull_request: -env: - # workaround for https://github.com/cake-contrib/Cake.Recipe/issues/724 - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - jobs: build: runs-on: ${{ matrix.os }} - #mimic "skip_branch_with_pr: true", see https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/4 - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [ windows-2019, ubuntu-18.04, macos-10.15 ] steps: - - uses: actions/checkout@v2.3.4 - with: - fetch-depth: 0 - ref: ${{ github.event.ref }} + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Fetch all tags and branches + run: git fetch --prune --unshallow - name: Cache Tools uses: actions/cache@v2 with: @@ -35,7 +37,7 @@ jobs: script-path: recipe.cake target: CI verbosity: Diagnostic - cake-version: 0.38.4 + cake-version: 0.38.5 cake-bootstrap: true - name: Upload Issues uses: actions/upload-artifact@v2 @@ -47,7 +49,7 @@ jobs: BuildArtifacts/**/coverlet/*.xml - name: Upload Packages uses: actions/upload-artifact@v2 - if: matrix.os == 'windows-latest' + if: runner.os == 'Windows' with: if-no-files-found: warn name: package diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bc45cc23..3d1572e9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2 with: fetch-depth: 0 @@ -53,7 +53,7 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - - run: ./build.ps1 + - run: ./build.ps1 --target=DotNetCore-Build shell: pwsh - name: Perform CodeQL Analysis diff --git a/.github/workflows/publishDocs.yml b/.github/workflows/publishDocs.yml index a2bea1cc..f5cc6285 100644 --- a/.github/workflows/publishDocs.yml +++ b/.github/workflows/publishDocs.yml @@ -21,7 +21,7 @@ jobs: ref: ${{ github.event.ref }} - name: Cache Tools - uses: actions/cache@v2.1.1 + uses: actions/cache@v2 with: path: tools key: ${{ runner.os }}-doc-tools-${{ hashFiles('recipe.cake') }} @@ -32,5 +32,5 @@ jobs: script-path: recipe.cake target: Force-Publish-Documentation verbosity: Diagnostic - cake-version: 0.38.4 + cake-version: 0.38.5 cake-bootstrap: true \ No newline at end of file diff --git a/GitReleaseManager.yaml b/GitReleaseManager.yaml index e13cf468..1fe474a3 100644 --- a/GitReleaseManager.yaml +++ b/GitReleaseManager.yaml @@ -8,6 +8,9 @@ create: with `#addin nuget:?package=Cake.AsciiDoctorJ&version={milestone}`. footer-includes-milestone: true milestone-replace-text: "{milestone}" + include-sha-section: true + sha-section-heading: "SHA256 Hashes of the release artifacts" + sha-section-line-format: "- `{1}\t{0}`" export: include-created-date-in-title: true created-date-string-format: yyyy-MM-dd @@ -32,3 +35,11 @@ issue-labels-alias: - name: security header: Security plural: Security +close: + use-issue-comments: true + issue-comment: |- + :tada: This issue has been resolved in version {milestone} :tada: + The release is available on: + - [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone}) + - [NuGet Package](https://www.nuget.org/packages/Cake.AsciiDoctorJ/{milestone}) + Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket: \ No newline at end of file diff --git a/recipe.cake b/recipe.cake index 2703ed8d..75206235 100644 --- a/recipe.cake +++ b/recipe.cake @@ -1,4 +1,4 @@ -#load nuget:?package=Cake.Recipe&version=2.1.0 +#load nuget:?package=Cake.Recipe&version=2.2.0 Environment.SetVariableNames(); diff --git a/src/Cake.AsciiDoctorJ.Tests/Cake.AsciiDoctorJ.Tests.csproj b/src/Cake.AsciiDoctorJ.Tests/Cake.AsciiDoctorJ.Tests.csproj index bd575d4e..51b0e670 100644 --- a/src/Cake.AsciiDoctorJ.Tests/Cake.AsciiDoctorJ.Tests.csproj +++ b/src/Cake.AsciiDoctorJ.Tests/Cake.AsciiDoctorJ.Tests.csproj @@ -19,19 +19,19 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Cake.AsciiDoctorJ/Cake.AsciiDoctorJ.csproj b/src/Cake.AsciiDoctorJ/Cake.AsciiDoctorJ.csproj index 3ab71117..0ac4d17b 100644 --- a/src/Cake.AsciiDoctorJ/Cake.AsciiDoctorJ.csproj +++ b/src/Cake.AsciiDoctorJ/Cake.AsciiDoctorJ.csproj @@ -25,7 +25,7 @@ makes [asciidoctorj](https://github.com/asciidoctor/asciidoctorj) available as a tool in [cake](https://cakebuild.net/) MIT https://cake-contrib.github.io/cake.asciidoctorj - cake;addin;asciidoctorj + cake,build,cake-build,addin,script,asciidoctorj https://github.com/cake-contrib/Cake.AsciiDoctorJ.git https://github.com/cake-contrib/Cake.AsciiDoctorJ/releases/tag/$(Version) icon.png @@ -33,13 +33,13 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive