From cb9b2bb09285d121b0e214dd4f605d794e629d38 Mon Sep 17 00:00:00 2001 From: Benjamin Marwell Date: Thu, 26 Oct 2023 12:53:08 +0200 Subject: [PATCH] [#57] Add GitHub workflows, release-drafter, dependabot. --- .github/dependabot.yml | 10 ++++++++ .github/release-drafter.yml | 19 +++++++++++++++ .github/workflows/maven.yml | 34 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 13 ++++++++++ .github/workflows/stale.yml | 19 +++++++++++++++ pom.xml | 1 - 6 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/maven.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..080cbdc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: +- package-ecosystem: maven + directory: "/" + schedule: + interval: daily +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..9ed148a --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,19 @@ +_extends: .github +name-template: '$RESOLVED_VERSION' +tag-template: 'wagon-maven-plugin-$RESOLVED_VERSION' +version-resolver: + major: + labels: + - major + minor: + labels: + - minor + - enhancement + patch: + labels: + - patch + default: patch +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..27386c7 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: GitHub CI + +on: [push, pull_request] + +jobs: + build: + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3 + with: + ff-goal: '-P run-its install' # site use project version for reporting + verify-goal: '-P run-its install' # should be the same as for first build + + deploy: + name: Deploy + needs: build + uses: mojohaus/.github/.github/workflows/maven-deploy.yml@master + secrets: inherit diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..c8ac4b7 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter +on: + push: + branches: + - master + workflow_dispatch: +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..a89eaed --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: 'Close stale PR and Issues' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.' + days-before-pr-stale: 365 + days-before-pr-close: 30 + stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.' + close-issue-reason: 'not_planned' + days-before-issue-stale: 365 + days-before-issue-close: 30 + diff --git a/pom.xml b/pom.xml index 7238179..e86fceb 100644 --- a/pom.xml +++ b/pom.xml @@ -288,7 +288,6 @@ maven-site-plugin - 3.7 ${wagon.api.version}