diff --git a/.github/workflows/release-and-pypi-publish.yml b/.github/workflows/release-and-pypi-publish.yml index f79e4a91e..7cece92d8 100644 --- a/.github/workflows/release-and-pypi-publish.yml +++ b/.github/workflows/release-and-pypi-publish.yml @@ -22,7 +22,7 @@ # ################################################################################################################ -name: Bump Version, Generate Changelog, Create Release, Publish, and Restart Jobs +name: Bump Version, Generate Changelog, Create Release on: push: @@ -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/