Skip to content

Commit

Permalink
Update publish_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanaseus committed Jun 23, 2023
1 parent 6d59134 commit 46a8e19
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
tags:
- '**'

env:
POETRY_VERSION: 1.4.0

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -25,13 +28,30 @@ jobs:
- name: Install latest setuptools, wheel, pip
run: python3 -m pip install -U pip setuptools wheel

- name: Cache Installations
id: cache-installs
uses: actions/cache@v3
with:
path: ~/.local
key: install-${{ env.INSTALL_CACHE_HASH }}-3

- name: Install Poetry
if: steps.cache-installs.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
- name: Test poetry
run: poetry --version

- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Build distributions
run: python setup.py sdist bdist_wheel
- name: Install aimfast
run: poetry install

- name: Build distribution
run: poetry build

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 46a8e19

Please sign in to comment.