Skip to content

Commit d2b64f3

Browse files
update the yaml to use the release binary download
1 parent 6bb4850 commit d2b64f3

File tree

6 files changed

+58
-22
lines changed

6 files changed

+58
-22
lines changed

.github/workflows/release-dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
runs-on: windows-latest
2020
steps:
2121
- uses: actions/checkout@master
22+
- uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '6.0.x'
2225
- name: Set up Python 3.9
2326
uses: actions/setup-python@v1
2427
with:
2528
python-version: 3.9
26-
- uses: actions/setup-dotnet@v1
27-
with:
28-
dotnet-version: '6.0.x'
2929
- uses: trinsic-id/[email protected]
3030
id: setversion
3131
with:

.github/workflows/release-java.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,22 @@ jobs:
3030
with:
3131
java-version: '15'
3232
distribution: 'adopt'
33-
- name: Download workflow artifact
34-
uses: dawidd6/[email protected]
33+
- name: Set up Python 3.9
34+
uses: actions/setup-python@v1
3535
with:
36-
workflow: "build-libs.yml"
37-
path: ./libs
38-
branch: main
36+
python-version: 3.9
3937
- uses: trinsic-id/[email protected]
4038
id: setversion
4139
with:
4240
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
4341
overrideVersion: ${{ github.event.inputs.packageVersion }}
42+
- name: release-downloader
43+
uses: robinraju/[email protected]
44+
with:
45+
repository: trinsic-id/okapi
46+
latest: true
47+
token: ${{ secrets.API_GITHUB_TOKEN }}
48+
fileName: "libs.zip"
4449
- name: Publish package
4550
run: |
4651
python ../devops/build_sdks.py --package-version=${{ steps.setversion.outputs.packageVersion }} --language=java

.github/workflows/release-python.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@master
22-
- name: Set up Python 3.9
22+
- name: Set up Python 3.9
2323
uses: actions/setup-python@v1
2424
with:
2525
python-version: 3.9
26+
- uses: trinsic-id/[email protected]
27+
id: setversion
28+
with:
29+
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
30+
overrideVersion: ${{ github.event.inputs.packageVersion }}
2631
- name: release-downloader
2732
uses: robinraju/[email protected]
2833
with:
@@ -33,8 +38,7 @@ jobs:
3338
- name: Build, Test, Pack
3439
run: |
3540
python -m pip install -r requirements.txt
36-
python -m pip install build
37-
python ../devops/build_sdks.py --package-version=${{ github.event.inputs.packageVersion }} --language=python
41+
python ../devops/build_sdks.py --package-version=${{ steps.setversion.outputs.packageVersion }} --language=python
3842
python -m build --sdist --wheel --outdir dist/ .
3943
shell: pwsh
4044
working-directory: python

.github/workflows/release-ruby.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,27 @@ jobs:
2929
uses: ruby/[email protected]
3030
with:
3131
ruby-version: 2.7
32-
- name: Download workflow artifact
33-
uses: dawidd6/[email protected]
32+
- name: Set up Python 3.9
33+
uses: actions/setup-python@v1
3434
with:
35-
workflow: "build-libs.yml"
36-
path: ./libs
37-
branch: main
35+
python-version: 3.9
36+
- uses: trinsic-id/[email protected]
37+
id: setversion
38+
with:
39+
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
40+
overrideVersion: ${{ github.event.inputs.packageVersion }}
41+
- name: release-downloader
42+
uses: robinraju/[email protected]
43+
with:
44+
repository: trinsic-id/okapi
45+
latest: true
46+
token: ${{ secrets.API_GITHUB_TOKEN }}
47+
fileName: "libs.zip"
3848
- name: Build and run tests
3949
run: |
4050
gem install bundler
4151
bundle install
42-
python ../devops/build_sdks.py --package-version=${{ github.event.inputs.packageVersion }} --language=ruby
52+
python ../devops/build_sdks.py --package-version=${{ steps.setversion.outputs.packageVersion }} --language=ruby
4353
4454
mkdir -p $HOME/.gem
4555
touch $HOME/.gem/credentials

.github/workflows/release-swift.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,33 @@ jobs:
2121
- name: Checkout
2222
uses: actions/[email protected]
2323

24-
- name: Download workflow artifact
25-
uses: dawidd6/[email protected]
24+
- name: Set up Python 3.9
25+
uses: actions/setup-python@v1
2626
with:
27-
workflow: "build-libs.yml"
28-
path: ./libs
27+
python-version: 3.9
28+
- uses: trinsic-id/[email protected]
29+
id: setversion
30+
with:
31+
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
32+
overrideVersion: ${{ github.event.inputs.packageVersion }}
33+
- name: release-downloader
34+
uses: robinraju/[email protected]
35+
with:
36+
repository: trinsic-id/okapi
37+
latest: true
38+
token: ${{ secrets.API_GITHUB_TOKEN }}
39+
fileName: "libs.zip"
2940

3041
- uses: trinsic-id/[email protected]
3142
id: setversion
3243
with:
3344
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
3445
overrideVersion: ${{ github.event.inputs.packageVersion }}
46+
- run: |
47+
python ./devops/build_sdks.py --package-version=${{ steps.setversion.outputs.packageVersion }} --language=none
48+
working-directory: ./
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3551
3652
- name: Create Framework
3753
run: |

python/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ setuptools~=60.5.0
77
black
88
flake8
99
pytest
10-
pytest-cov
10+
pytest-cov
11+
build

0 commit comments

Comments
 (0)