From 5a595be9df8a97bb535ff56bf73aea40b834a7eb Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 25 Aug 2022 12:19:36 +0100 Subject: [PATCH] Ensure GitHub Releases include asc files (#632) Add OpenSSF badge https://bestpractices.coreinfrastructure.org/en/projects/6310 --- .github/workflows/build.yml | 4 +- .github/workflows/tzdbupdate.yml | 6 ++ README.md | 5 +- pom.xml | 105 +++++++++++++++++-------------- src/changes/changes.xml | 6 ++ 5 files changed, 76 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d150997f1..eb3b03ce8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,9 +9,9 @@ on: tags: - 'v*' - 'website*' - pull_request_target: + pull_request: branches: - - '*' + - 'main' permissions: contents: read diff --git a/.github/workflows/tzdbupdate.yml b/.github/workflows/tzdbupdate.yml index d31620b43..4da8c4fbd 100644 --- a/.github/workflows/tzdbupdate.yml +++ b/.github/workflows/tzdbupdate.yml @@ -8,8 +8,14 @@ on: schedule: - cron: '50 1 * * *' +permissions: + contents: read + jobs: tzdbcheck: + permissions: + contents: write # for peter-evans/create-pull-request to create branch + pull-requests: write # for peter-evans/create-pull-request to create a PR runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 419a9a765..692aa3ca9 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,9 @@ public String getBirthMonthText(LocalDate dateOfBirth) { Joda-Time is licensed under the business-friendly [Apache 2.0 licence](https://www.joda.org/joda-time/licenses.html). +![Tidelift dependency check](https://tidelift.com/badges/github/JodaOrg/joda-time) +[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6310/badge)](https://bestpractices.coreinfrastructure.org/projects/6310) + ### Documentation Various documentation is available: @@ -71,8 +74,6 @@ Available in the [Maven Central repository](https://search.maven.org/search?q=g: compile 'joda-time:joda-time:2.11.0' ``` -![Tidelift dependency check](https://tidelift.com/badges/github/JodaOrg/joda-time) - ### Related projects Related projects at GitHub: diff --git a/pom.xml b/pom.xml index 46525c115..d9f6a3f11 100644 --- a/pom.xml +++ b/pom.xml @@ -867,37 +867,61 @@ - + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus-staging-maven-plugin.version} + true + + https://oss.sonatype.org/ + sonatype-joda-staging + Releasing ${project.groupId}:${project.artifactId}:${project.version} + true + true + + + + + + org.apache.maven.plugins - maven-gpg-plugin + maven-assembly-plugin - sign-artifacts - verify + make-assembly + deploy - sign + single + + + src/main/assembly/dist.xml + + gnu + - + org.apache.maven.plugins - maven-assembly-plugin - - false - - src/main/assembly/dist.xml - - gnu - + maven-gpg-plugin - make-assembly - install + sign-artifacts + verify - single + sign + + + + + sign-dist-artifacts + deploy + + sign @@ -907,21 +931,6 @@ de.jutzig github-release-plugin 1.4.0 - - Release v${project.version} - See the [change notes](https://www.joda.org/joda-time/changes-report.html#a${project.version}) for more information. - v${project.version} - true - - - ${project.build.directory} - - ${project.artifactId}*-dist.tar.gz - ${project.artifactId}*-dist.zip - - - - github-releases @@ -929,23 +938,27 @@ release + + Release v${project.version} + See the [change notes](https://www.joda.org/joda-time/changes-report.html#a${project.version}) for more information. + v${project.version} + true + + + ${project.build.directory} + + ${project.artifactId}-${project.version}-dist.tar.gz + ${project.artifactId}-${project.version}-dist.tar.gz.asc + ${project.artifactId}-${project.version}-dist.zip + ${project.artifactId}-${project.version}-dist.zip.asc + ${project.artifactId}-${project.version}.jar.asc + + + + - - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-maven-plugin.version} - true - - https://oss.sonatype.org/ - sonatype-joda-staging - Releasing ${project.groupId}:${project.artifactId}:${project.version} - true - true - - diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5dfceba6e..4fe31ef94 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -9,9 +9,15 @@ + + Update build scripts and fix static analysis warnings. + Switch master to main. + + DateTimeZone data updated to version 2022cgtz. +