Skip to content

Commit

Permalink
Fix build GHA by installing setuptools and bumping checkout to v3 (#2)
Browse files Browse the repository at this point in the history
* Bump GHA actions/checkout to v3

* Pip install setuptools in GHA
  • Loading branch information
catileptic committed Mar 12, 2024
1 parent 904a45b commit dd2f5df
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Show ref
run: |
echo "$GITHUB_REF"
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo rm -f /etc/boto.cfg
sudo apt-get -qq -y update
sudo apt-get install -qq -y libicu-dev
pip install wheel
pip install -e "."
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
- uses: actions/checkout@v3
- name: Show ref
run: |
echo "$GITHUB_REF"
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo rm -f /etc/boto.cfg
sudo apt-get -qq -y update
sudo apt-get install -qq -y libicu-dev
pip install --upgrade pip setuptools
pip install wheel
pip install -e "."
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit dd2f5df

Please sign in to comment.