mirror of
https://github.com/QuantEngines/fx_quant_engine.git
synced 2026-07-28 02:47:50 +00:00
45 lines
946 B
YAML
45 lines
946 B
YAML
name: fx-quant-engine-release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-release-artifacts:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install build tools
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install build twine
|
|
|
|
- name: Build wheel and sdist
|
|
run: python -m build
|
|
|
|
- name: Verify artifacts
|
|
run: twine check dist/*
|
|
|
|
- name: Upload release distribution artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fx-quant-engine-dist
|
|
path: dist/*
|
|
retention-days: 90
|
|
|
|
- name: Create GitHub release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: dist/*
|
|
generate_release_notes: true
|