Skip to content

Commit 4c1ada4

Browse files
committed
Initialising Java Repo
0 parents  commit 4c1ada4

File tree

5 files changed

+740
-0
lines changed

5 files changed

+740
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Generate
2+
3+
on:
4+
workflow_dispatch: {} # Allows manual triggering of the workflow to generate SDK
5+
schedule:
6+
- cron: 0 0 * * * # Runs every day at midnight
7+
8+
jobs:
9+
generate:
10+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v7
11+
with:
12+
speakeasy_version: latest
13+
openapi_doc_location: ./openapi.yaml
14+
languages: |-
15+
- java: ./
16+
17+
mode: pr
18+
secrets:
19+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
20+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
push: # Will trigger when the RELEASES.md file is updated by the merged PR from the generation workflow
5+
paths:
6+
- "RELEASES.md"
7+
branches:
8+
- main
9+
10+
jobs:
11+
publish:
12+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v7 # Import the sdk publish workflow which will handle the publishing to the package managers
13+
with:
14+
# publish_java: true
15+
create_release: true
16+
secrets:
17+
# maven_token: ${{ secrets.MAVEN_TOKEN }}
18+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Speakeasy Generated SDKs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

gen.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
java:
2+
version: 0.0.0
3+
packagename: fabra.io.javasdk
4+
projectname: fabra-java-sdk
5+
sdkclassname: Fabra

0 commit comments

Comments
 (0)