Skip to content

Commit

Permalink
ajusta tudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro2712 committed Apr 12, 2024
1 parent 4cef0a9 commit f2cfc36
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.*'
python-version: 3.x # Choose the desired Python version

- name: Cache Python Dependencies
uses: actions/cache@v4
Expand Down
40 changes: 22 additions & 18 deletions .github/workflows/pipy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@ name: Publish Drone Swarm Search to PyPI 🚀
on:
push:
tags:
- '*'
- '*'

jobs:
build-n-publish:
name: Publish Drone Swarm Search to PyPI 🚀
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.*'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools
- name: Update version in setup.py
run: |
VERSION=${GITHUB_REF#refs/tags/}
sed -i "s/{{VERSION_PLACEHOLDER}}/$VERSION/g" setup.py
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.*' # This will use the latest Python 3.x version available

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools twine
- name: Update version in setup.py
run: |
VERSION=${GITHUB_REF#refs/tags/}
sed -i "s/{{VERSION_PLACEHOLDER}}/$VERSION/g" setup.py
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit f2cfc36

Please sign in to comment.