Skip to content

Commit

Permalink
Update release-and-pypi-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesigh-3100 committed Apr 17, 2024
1 parent dae3667 commit 5cdda9a
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions .github/workflows/release-and-pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
################################################################################################################

name: Bump Version, Generate Changelog, Create Release, Publish, and Restart Jobs
name: Bump Version, Generate Changelog, Create Release

on:
push:
Expand Down Expand Up @@ -144,39 +144,5 @@ jobs:
draft: false
prerelease: false

- name: Create .env file
run: |
echo TENDERLY_FORK=$TENDERLY_FORK > .env
echo WEB3_ALCHEMY_PROJECT_ID=$WEB3_ALCHEMY_PROJECT_ID >> .env
echo ETHERSCAN_TOKEN=$ETHERSCAN_TOKEN >> .env
echo DEFAULT_MIN_PROFIT_BNT=$DEFAULT_MIN_PROFIT_BNT >> .env
echo ETH_PRIVATE_KEY_BE_CAREFUL=$ETH_PRIVATE_KEY_BE_CAREFUL >> .env
echo TENDERLY_FORK_ID=$TENDERLY_FORK_ID >> .env
env:
TENDERLY_FORK: '${{ secrets.TENDERLY_FORK }}'
TENDERLY_FORK_ID: '${{ secrets.TENDERLY_FORK }}'
WEB3_ALCHEMY_PROJECT_ID: '${{ secrets.WEB3_ALCHEMY_PROJECT_ID }}'
ETHERSCAN_TOKEN: '${{ secrets.ETHERSCAN_TOKEN }}'
DEFAULT_MIN_PROFIT_BNT: '${{ secrets.DEFAULT_MIN_PROFIT_BNT }}'
ETH_PRIVATE_KEY_BE_CAREFUL: '${{ secrets.ETH_PRIVATE_KEY_BE_CAREFUL }}'

- name: Install package
run: |
python setup.py install
- name: Build package
run: python setup.py sdist

- name: Build wheel
run: |
pip install wheel
python setup.py bdist_wheel
find dist -type f ! -name "*.whl" -exec rm -f {} +
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.FASTLANE_PYPI_API_TOKEN }}
repository-url: https://upload.pypi.org/legacy/


0 comments on commit 5cdda9a

Please sign in to comment.