Skip to content

Commit

Permalink
Add automated GitHub Release creation for commits with tags beginning v
Browse files Browse the repository at this point in the history
  • Loading branch information
klymenko-galyna-ew committed Aug 25, 2023
1 parent ee1505f commit 26fe810
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Github Release

# Run on every commit tag which begins with "v" (e.g., "v2023.8.18")
on:
push:
tags:
- "v*"

# Automatically create a GitHub Release, with release details specified (the relevant commits)
jobs:
release:
name: "Github Release"
runs-on: "ubuntu-latest"
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
8 changes: 4 additions & 4 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish package to the Maven Central Repository
#on:
on:
# push:
# tags:
# - v*
# pull_request:
# branches: [ main ]
pull_request:
branches: [ main ]

on: [push]
#on: [push]

jobs:
publish:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build Project with OpenAPI Generator and Publish to Maven

on:
push:
tags:
- v*
# push:
# tags:
# - v*
pull_request:
branches: [ main ]

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Currently we support 2.2.1 OCPI version.
Maven
=====

Find the maven repo here: https://mvnrepository.com/artifact/com.extrawest
Find the maven repo here: https://mvnrepository.com/artifact/com.extrawest/Extrawest-OCPI-2.2.1-CPO-Client

## Requirements

Expand All @@ -71,7 +71,6 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.extrawest</groupId>
<artifactId>Extrawest-OCPI-2.2.1-CPO-Client</artifactId>
<version>2023.8.18</version>
<scope>compile</scope>
</dependency>
```
Expand Down Expand Up @@ -107,8 +106,8 @@ public class ClientInfoControllerApiExample {
defaultClient.setBasePath("http://localhost:8080");

ClientInfoControllerApi apiInstance = new ClientInfoControllerApi(defaultClient);
String countryCode = "countryCode_example"; // String |
String partyId = "partyId_example"; // String |
String countryCode = "countryCode_example";
String partyId = "partyId_example";
try {
ClientInfoDTO result = apiInstance.getHubClientInfo(countryCode, partyId);
System.out.println(result);
Expand Down

0 comments on commit 26fe810

Please sign in to comment.