mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 12:37:45 +00:00
Adjusted config and added build action
This commit is contained in:
40
.github/workflows/liblab-generate-sdks.yml
vendored
Normal file
40
.github/workflows/liblab-generate-sdks.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Generate SDKs using liblab
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- plex-media-server-spec-dereferenced.yaml
|
||||||
|
# Add any other triggers you want here, such as a push to the spec file
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-pr:
|
||||||
|
name: Generate SDKs and create PRs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
LIBLAB_TOKEN: ${{ secrets.LIBLAB_TOKEN }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.SDK_TOKEN }}
|
||||||
|
environment: development
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node.js environment
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "18" # Specify the node version you want to use
|
||||||
|
|
||||||
|
- name: Install liblab
|
||||||
|
run: npm install -g liblab
|
||||||
|
|
||||||
|
- name: Validate Config and Spec
|
||||||
|
run: liblab validate
|
||||||
|
|
||||||
|
- name: Start Build
|
||||||
|
run: liblab build --skip-validation --approve-docs
|
||||||
|
|
||||||
|
- name: Create PRs to GitHub repos
|
||||||
|
run: liblab pr
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"sdkName": "plexsdk",
|
"sdkName": "PlexSDK",
|
||||||
"specFilePath": "./plex-media-server-spec-dereferenced.yaml",
|
"specFilePath": "./plex-media-server-spec-dereferenced.yaml",
|
||||||
"languages": ["python", "typescript", "java"],
|
"languages": ["python", "typescript", "java"],
|
||||||
"createDocs": true,
|
"createDocs": true,
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"languageOptions": {
|
"languageOptions": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"npmName": "plex-typescript-sdk",
|
"npmName": "plexjs",
|
||||||
"npmOrg": "lukehagar",
|
"npmOrg": "lukehagar",
|
||||||
"httpClient": "axios",
|
"httpClient": "axios",
|
||||||
"bundle": false,
|
"bundle": false,
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"python": {
|
"python": {
|
||||||
"pypiPackageName": "plex-python-sdk",
|
"pypiPackageName": "plexpy",
|
||||||
"alwaysInitializeOptionals": false,
|
"alwaysInitializeOptionals": false,
|
||||||
"githubRepoName": "plexpy",
|
"githubRepoName": "plexpy",
|
||||||
"sdkVersion": "0.0.1",
|
"sdkVersion": "0.0.1",
|
||||||
@@ -55,10 +55,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"java": {
|
"java": {
|
||||||
"githubRepoName": "plex-java-sdk",
|
"githubRepoName": "plexjava",
|
||||||
"sdkVersion": "0.0.1",
|
"sdkVersion": "0.0.1",
|
||||||
"groupId": "plex.lukehagar",
|
|
||||||
"ignoreFiles": [],
|
"ignoreFiles": [],
|
||||||
|
"java": {
|
||||||
|
"groupId": "sdk.plex"
|
||||||
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Luke Hagar",
|
"name": "Luke Hagar",
|
||||||
|
|||||||
Reference in New Issue
Block a user