Skip to content

Commit da4e730

Browse files
committed
ref
1 parent 9fa3ba5 commit da4e730

File tree

8,754 files changed

+1097736
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,754 files changed

+1097736
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CoinAPI Indexes API REST OpenAPI to SDK
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Adjust to your default branch (e.g., main) if different
7+
paths:
8+
- 'coinapi/indexes-api-rest/spec/openapi.json'
9+
pull_request:
10+
branches:
11+
- master # Adjust to your default branch (e.g., main) if different
12+
paths:
13+
- 'coinapi/indexes-api-rest/spec/openapi.json'
14+
15+
jobs:
16+
call-reusable-workflow:
17+
uses: ./.github/workflows/reusable-openapi-to-sdk.yaml
18+
with:
19+
product_line_slug: "coinapi"
20+
api_type_slug: "indexes-api-rest"
21+
commit_message_subject: "CoinAPI Indexes API REST Historical"
22+
secrets:
23+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish CoinAPI Market Data API REST package
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- 'coinapi/market-data-api-rest/sdk/csharp-rest/**'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: coinapi/market-data-api-rest/sdk/csharp-rest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup .NET Core
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: '3.1.x'
24+
25+
- name: Dotnet restore
26+
run: dotnet restore
27+
28+
- name: Dotnet build
29+
run: dotnet build
30+
31+
- name: Publish Nuget
32+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json || exit 0
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish CoinAPI Market Data API REST package
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- 'coinapi/market-data-api-rest/sdk/java-rest/**'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: coinapi/market-data-api-rest/sdk/java-rest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Java for publishing to GitHub Packages
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 1.8
24+
25+
- name: Publish to GitHub Packages
26+
run: mvn -B deploy -DskipTests || exit 0
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish CoinAPI Market Data API REST package
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- 'coinapi/market-data-api-rest/sdk/python-rest/**'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: coinapi/market-data-api-rest/sdk/python-rest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.10.12'
24+
25+
- name: install
26+
run: python -m pip install --user --upgrade setuptools wheel twine
27+
28+
- name: setup package
29+
run: python setup.py sdist bdist_wheel
30+
31+
- name: deploy
32+
run: python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} || exit 0
33+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish CoinAPI Market Data API WebSocket package
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- 'coinapi/market-data-api-ws/sdk/csharp-ws/**'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: coinapi/market-data-api-ws/sdk/csharp-ws
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup .NET Core
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: 8.x
24+
25+
- name: Dotnet restore
26+
run: dotnet restore
27+
28+
- name: Dotnet build
29+
run: dotnet build
30+
31+
- name: Publish Nuget
32+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json || exit 0
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish CoinAPI Market Data API WebSocket package
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- 'coinapi/market-data-api-ws/sdk/java-websocket/**'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: coinapi/market-data-api-ws/sdk/java-websocket
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Java for publishing to GitHub Packages
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 1.8
24+
25+
- name: Publish to GitHub Packages
26+
run: mvn -B deploy -DskipTests || exit 0
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: FinFeedAPI SEC API OpenAPI to SDK
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Adjust to your default branch (e.g., main) if different
7+
paths:
8+
- 'finfeedapi/sec-api-rest/spec/openapi.json'
9+
pull_request:
10+
branches:
11+
- master # Adjust to your default branch (e.g., main) if different
12+
paths:
13+
- 'finfeedapi/sec-api-rest/spec/openapi.json'
14+
15+
jobs:
16+
call-reusable-workflow:
17+
uses: ./.github/workflows/reusable-openapi-to-sdk.yaml
18+
with:
19+
product_line_slug: "finfeedapi"
20+
api_type_slug: "sec-api-rest"
21+
commit_message_subject: "FinFeedAPI SEC API REST Historical"
22+
secrets:
23+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Python SEC API SDK to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Or your primary branch name
7+
paths:
8+
- 'finfeedapi/sec-api/sdk/python/**' # Watch for changes in the Python SDK directory
9+
10+
jobs:
11+
pypi-publish:
12+
name: upload release to PyPI
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: finfeedapi/sec-api-rest/sdk/python
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.10.12'
26+
27+
- name: Install build dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install build wheel setuptools twine
31+
32+
- name: Build package distributions
33+
run: python -m build --sdist --wheel --outdir dist/ .
34+
35+
- name: deploy
36+
run: python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} || exit 0
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish Python SEC API SDK to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- disabled # Or your primary branch name
7+
paths:
8+
- 'disabled' # Watch for changes in the Python SDK directory
9+
10+
jobs:
11+
pypi-publish:
12+
name: upload release to PyPI
13+
runs-on: ubuntu-latest
14+
# Ensure this environment is configured in your GitHub settings for PyPI trusted publishing
15+
# It should be configured to allow deployments from this repository and branch/tag.
16+
environment: pypi
17+
permissions:
18+
id-token: write # Required for OIDC trusted publishing
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.9' # Specify your desired Python version (e.g., 3.8, 3.9, 3.10, 3.11)
28+
29+
- name: Install build dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install build wheel setuptools
33+
34+
- name: Build package distributions
35+
# Change working directory to where your pyproject.toml or setup.py is located
36+
working-directory: finfeedapi/sec-api/sdk/python
37+
run: python -m build --sdist --wheel --outdir dist/ .
38+
# This command builds the package and places the .tar.gz and .whl files
39+
# into finfeedapi/sec-api/sdk/python/dist/
40+
41+
- name: Publish package distributions to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
# packages-dir should point to the directory containing the built distributions
45+
packages-dir: finfeedapi/sec-api/sdk/python/dist/
46+
# For trusted publishing, user and password/token are not needed here.
47+
# The action will automatically use the OIDC token obtained via the id-token permission.
48+
# Ensure your PyPI project is configured to trust publishes from this GitHub repository/workflow.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: FinFeedAPI Stock API OpenAPI to SDK
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Adjust to your default branch (e.g., main) if different
7+
paths:
8+
- 'finfeedapi/stock-api-rest/spec/openapi.json'
9+
pull_request:
10+
branches:
11+
- master # Adjust to your default branch (e.g., main) if different
12+
paths:
13+
- 'finfeedapi/stock-api-rest/spec/openapi.json'
14+
15+
jobs:
16+
call-reusable-workflow:
17+
uses: ./.github/workflows/reusable-openapi-to-sdk.yaml
18+
with:
19+
product_line_slug: "finfeedapi"
20+
api_type_slug: "stock-api-rest"
21+
commit_message_subject: "FinFeedAPI Stock API REST Historical"
22+
secrets:
23+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

0 commit comments

Comments
 (0)