File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*" # Triggers when a tag like 'v3.2.0' is pushed
7+
8+ jobs :
9+ build-and-publish :
10+ name : Build and Publish Packages
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Python 3.10
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.10"
20+
21+ - name : Install build dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install setuptools wheel twine
25+
26+ - name : Build and publish stac-fastapi-core
27+ working-directory : stac_fastapi/core
28+ env :
29+ TWINE_USERNAME : " __token__" # Hardcoded username for API token authentication
30+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }} # Your PyPI API token from GitHub Secrets
31+ run : |
32+ # Build package
33+ python setup.py sdist bdist_wheel
34+
35+ # Publish to PyPI
36+ twine upload dist/*
37+
38+ - name : Build and publish stac-fastapi-elasticsearch
39+ working-directory : stac_fastapi/elasticsearch
40+ env :
41+ TWINE_USERNAME : " __token__"
42+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
43+ run : |
44+ # Build package
45+ python setup.py sdist bdist_wheel
46+
47+ # Publish to PyPI
48+ twine upload dist/*
49+
50+ - name : Build and publish stac-fastapi-opensearch
51+ working-directory : stac_fastapi/opensearch
52+ env :
53+ TWINE_USERNAME : " __token__"
54+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
55+ run : |
56+ # Build package
57+ python setup.py sdist bdist_wheel
58+
59+ # Publish to PyPI
60+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments