Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
ci(release): add publish to PyPI action
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard-28 committed Dec 17, 2022
1 parent 5752530 commit e0745c4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv and build
- name: Load cached venv and build cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -29,7 +29,7 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install project
run: poetry install --no-interaction --no-root --without dev --with build
- name: Build
- name: Build binary using PyInstaller
run: |
source .venv/bin/activate
mkdir -p build/
Expand All @@ -40,6 +40,11 @@ jobs:
with:
name: pacup
path: dist/pacup
- name: Build and publish to PyPI
uses: JRubics/[email protected]
if: github.event_name != 'workflow_dispatch'
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Release assets
uses: softprops/action-gh-release@v1
if: github.event_name != 'workflow_dispatch'
Expand Down

0 comments on commit e0745c4

Please sign in to comment.