Skip to content

Commit

Permalink
update release deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jul 12, 2024
1 parent 68535d4 commit 9f330ae
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
python -m pip install --upgrade pip
pip install poetry
poetry env use python${{ matrix.python-version }}
cd lightrag
poetry install --no-dev
- name: Build the distribution
run: |
Expand All @@ -75,12 +76,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Download distribution
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Install Poetry and perform dry run publish
run: |
python -m pip install --upgrade pip
pip install poetry
poetry env use python${{ matrix.python-version }}
cd lightrag
cd dist
poetry publish --dry-run --build -v
publish-to-pypi:
Expand All @@ -98,36 +103,23 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry and publish to PyPI
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Download distribution
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: List distribution files
run: |
cd dist
ls -al
- name: Publish to PyPI
- name: Install Poetry and publish to PyPI
run: |
python -m pip install --upgrade pip
pip install poetry
cd dist
poetry publish --username __token__ --password ${{ secrets.PYPI_KEY }} --verbose
create-github-release:
needs: publish-to-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check current ref
run: |
echo "Current ref: ${{ github.ref }}"
echo "Tag name: ${{ github.ref_name }}"
- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Create Release on GitHub
id: create_release
uses: actions/create-release@v1
Expand All @@ -140,7 +132,6 @@ jobs:
draft: false
prerelease: false


rollback:
needs: publish-to-pypi
if: ${{ github.event.inputs.rollback == 'true' }}
Expand Down

0 comments on commit 9f330ae

Please sign in to comment.