Skip to content

Commit

Permalink
Release please (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Weinfurtner Jared (BD/SIX-EU) <[email protected]>
  • Loading branch information
jaredweinfurtner authored Jul 26, 2023
1 parent 8ffab9c commit 828e678
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- opened

jobs:

# re-usable workflow @see https://docs.github.com/en/actions/using-workflows/reusing-workflows
auto-labeling:
uses: carbynestack/.github/.github/workflows/auto-labeler.yml@master
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2023 - for information on the respective copyright owner
# see the NOTICE file and/or the repository https://github.com/carbynestack/java-http-client.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Release
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v3
with:
command: manifest
signoff: "cs-minion <[email protected]>"
token: ${{ secrets.CS_MINION_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/stale-issue-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- cron: '0 1 * * *'

jobs:

# re-usable workflow @see https://docs.github.com/en/actions/using-workflows/reusing-workflows
stale-issue-cleanup:
uses: carbynestack/.github/.github/workflows/stale-actions.yml@master
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,30 @@
# SPDX-License-Identifier: Apache-2.0
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-byte-order-marker
- id: check-yaml
- id: end-of-file-fixer
exclude: ^3RD-PARTY-LICENSES/.*$
- id: trailing-whitespace
exclude: ^3RD-PARTY-LICENSES/.*$
- id: mixed-line-ending
exclude: ^3RD-PARTY-LICENSES/.*$
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.0.0
hooks:
- id: pretty-format-java
args: [--autofix]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
hooks:
- id: commitlint
stages:
- commit-msg
additional_dependencies:
- '@commitlint/config-conventional'
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.7
hooks:
Expand All @@ -19,6 +38,7 @@ repos:
- "80"
additional_dependencies:
- mdformat-gfm
exclude: ^3RD-PARTY-LICENSES/.*$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.27.1
hooks:
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![codecov](https://codecov.io/gh/carbynestack/java-http-client/branch/master/graph/badge.svg?token=iJ4L3PbGvT)](https://codecov.io/gh/carbynestack/java-http-client)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/819ea9adb8a64ae18beb9065a9b00b82)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=carbynestack/java-http-client&utm_campaign=Badge_Grade)
[![Known Vulnerabilities](https://snyk.io/test/github/carbynestack/java-http-client/badge.svg)](https://snyk.io/test/github/carbynestack/java-http-client)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)

Expand Down
13 changes: 13 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2023 - for information on the respective copyright owner
* see the NOTICE file and/or the repository https://github.com/carbynestack/java-http-client.
*
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"scope-empty": [0, "never"],
"scope-enum": [2, "always", ["java-http-client"]],
},
};
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>java-http-client</artifactId>
<groupId>io.carbynestack</groupId>
<version>${revision}</version>
<version>0.1.0</version>
<name>Carbyne Stack Java HTTP Client</name>
<description>Basic Java client used by Carbyne Stack service client implementations.</description>
<licenses>
Expand All @@ -37,7 +37,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<revision>0.1-SNAPSHOT</revision>
<skip.tests>false</skip.tests>
<java.version>1.8</java.version>

Expand Down
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"bump-minor-pre-major": true,
"separate-pull-requests": true,
"pull-request-title-pattern": "chore: release ${component} ${version}",
"pull-request-header": ":package: Staging a new release",
"packages": {
".": {
"package-name": "java-http-client",
"release-type": "maven",
"skip-snapshot": true
}
}
}

0 comments on commit 828e678

Please sign in to comment.