Skip to content

Commit

Permalink
Fix deploy (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-ls authored Mar 17, 2022
1 parent fc61e2e commit 10e6b0a
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,12 @@ jobs:
with:
python-version: 3.7

- name: Choose tag or commit as version
id: release
uses: olxbr/[email protected]

- name: Install project dependencies
env:
RELEASE_VERSION: ${{ steps.release.outputs.version }}
run: make install && python3 -m pip install build

- name: Build package
run: python3 -m build -s

- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: barterdude-${{ steps.release.outputs.version }}.tar.gz
path: 'dist/barterdude-${{ steps.release.outputs.version }}.tar.gz'

- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -79,15 +67,19 @@ jobs:
environment: 'prod'

steps:
- name: Choose tag or commit as version
id: release
uses: olxbr/[email protected]
- name: Checkout repository
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@v2
- name: Setup python 3.7
uses: actions/setup-python@v2
with:
name: barterdude-${{ steps.release.outputs.version }}.tar.gz
path: 'dist/barterdude-${{ steps.release.outputs.version }}.tar.gz'
python-version: 3.7

- name: Install project dependencies
run: make install && python3 -m pip install build

- name: Build package
run: python3 -m build -s

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 10e6b0a

Please sign in to comment.