Fix CD (#2309)
This commit is contained in:
17
.github/workflows/cd.yml
vendored
17
.github/workflows/cd.yml
vendored
@@ -24,23 +24,22 @@ jobs:
|
|||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: make install
|
||||||
cd embedchain
|
|
||||||
poetry install
|
|
||||||
|
|
||||||
- name: Build a binary wheel and a source tarball
|
- name: Clean previous builds
|
||||||
run: |
|
run: make clean
|
||||||
cd embedchain
|
|
||||||
poetry build
|
- name: Build package
|
||||||
|
run: make build
|
||||||
|
|
||||||
- name: Publish distribution 📦 to Test PyPI
|
- name: Publish distribution 📦 to Test PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
repository_url: https://test.pypi.org/legacy/
|
repository_url: https://test.pypi.org/legacy/
|
||||||
packages_dir: embedchain/dist/
|
packages_dir: dist/
|
||||||
|
|
||||||
- name: Publish distribution 📦 to PyPI
|
- name: Publish distribution 📦 to PyPI
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
packages_dir: embedchain/dist/
|
packages_dir: dist/
|
||||||
Reference in New Issue
Block a user