Skip to content

Update web3 to 6.20.2 #83

Update web3 to 6.20.2

Update web3 to 6.20.2 #83

Workflow file for this run

name: Build and publish
on:
pull_request:
types: [closed]
branches:
- master
- develop
- beta
- stable
jobs:
build:
runs-on: ubuntu-20.04
if: github.event.pull_request.merged
env:
PIP_USERNAME: ${{ secrets.PIP_USERNAME }}
PIP_PASSWORD: ${{ secrets.PIP_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install python dependencies
run: |
sudo apt-get update
sudo apt-get install libudev-dev
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install swig
sudo apt-get install python3-dev
python -m pip install --upgrade pip
pip install -e .
pip install -e .[dev]
pip install wheel
- name: Build and publish
run: |
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(BRANCH=$BRANCH bash ./scripts/calculate_version.sh)
echo "VERSION=$VERSION" >> $GITHUB_ENV
bash ./scripts/build.sh
- name: Publish to pip
run: |
bash ./scripts/publish.sh
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
draft: false
prerelease: true