tweaking nuget and pypi publishing
This commit is contained in:
parent
504da92074
commit
11ea1c1e82
@ -94,7 +94,7 @@ jobs:
|
|||||||
run: dotnet test --no-restore
|
run: dotnet test --no-restore
|
||||||
|
|
||||||
publishNET:
|
publishNET:
|
||||||
name: Build .NET
|
name: Publish .NET
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ buildNET ] # for ignoring bad builds
|
needs: [ buildNET ] # for ignoring bad builds
|
||||||
steps:
|
steps:
|
||||||
@ -118,9 +118,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: 9.0.x
|
dotnet-version: 9.0.x
|
||||||
|
|
||||||
- name: Add Gitea Repo
|
|
||||||
run: dotnet nuget add source --name gitea --api-key ${{ secrets.DOCKERHUB_TOKEN }} https://gitea.sheep-ghoul.ts.net/api/packages/sarsoo/nuget/index.json
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./FinLib.NET
|
working-directory: ./FinLib.NET
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
@ -131,7 +128,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push
|
- name: Push
|
||||||
working-directory: ./FinLib.NET/FinLib
|
working-directory: ./FinLib.NET/FinLib
|
||||||
run: dotnet nuget push --source gitea ./bin/Release/FinLib.NET.0.0.4.nupkg
|
run: dotnet nuget push ./bin/Release/FinLib.NET.0.0.5.nupkg --api-key ${{ secrets.DOCKERHUB_TOKEN }} --source https://gitea.sheep-ghoul.ts.net/api/packages/sarsoo/nuget/index.json
|
||||||
|
|
||||||
buildWASM:
|
buildWASM:
|
||||||
name: Build WASM
|
name: Build WASM
|
||||||
@ -247,13 +244,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-server-url: https://gitea.sheep-ghoul.ts.net
|
github-server-url: https://gitea.sheep-ghoul.ts.net
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
- name: Install Python 3
|
- name: Install Python 3
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.python-version }}
|
python-version: ${{ env.python-version }}
|
||||||
|
|
||||||
- uses: PyO3/maturin-action@v1
|
- name: Install Maturin
|
||||||
with:
|
run: sudo apt update && sudo apt install -y python3-maturin
|
||||||
command: publish
|
|
||||||
args: --repository-url https://gitea.sheep-ghoul.ts.net/api/packages/sarsoo/pypi/simple -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
|
- name: Publish
|
||||||
working-directory: ./pyfinlib
|
working-directory: ./pyfinlib
|
||||||
|
run: maturin publish --repository-url https://gitea.sheep-ghoul.ts.net/api/packages/sarsoo/pypi/simple
|
||||||
|
env:
|
||||||
|
MATURIN_PYPI_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -259,7 +259,7 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "finlib"
|
name = "finlib"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getrandom 0.2.15",
|
"getrandom 0.2.15",
|
||||||
"log",
|
"log",
|
||||||
@ -274,7 +274,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "finlib-ffi"
|
name = "finlib-ffi"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cbindgen",
|
"cbindgen",
|
||||||
"csbindgen",
|
"csbindgen",
|
||||||
@ -283,7 +283,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "finlib-wasm"
|
name = "finlib-wasm"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console_error_panic_hook",
|
"console_error_panic_hook",
|
||||||
"console_log",
|
"console_log",
|
||||||
@ -606,7 +606,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyfinlib"
|
name = "pyfinlib"
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"finlib",
|
"finlib",
|
||||||
"log",
|
"log",
|
||||||
|
@ -14,7 +14,7 @@ default-members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.0.4"
|
version = "0.0.5"
|
||||||
authors = ["sarsoo <andy@sarsoo.xyz>"]
|
authors = ["sarsoo <andy@sarsoo.xyz>"]
|
||||||
description = "Quant finance functions implemented in Rust"
|
description = "Quant finance functions implemented in Rust"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PackageId>FinLib.NET</PackageId>
|
<PackageId>FinLib.NET</PackageId>
|
||||||
<Version>0.0.4</Version>
|
<Version>0.0.5</Version>
|
||||||
<Authors>sarsoo</Authors>
|
<Authors>sarsoo</Authors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user