From dd2f5df8d435a58f9a0b2c9df28711e9c87ffac7 Mon Sep 17 00:00:00 2001 From: catileptic Date: Tue, 12 Mar 2024 19:13:15 +0200 Subject: [PATCH] Fix build GHA by installing setuptools and bumping checkout to v3 (#2) * Bump GHA actions/checkout to v3 * Pip install setuptools in GHA --- .github/workflows/build.yml | 53 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9593a9..8745c61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} \ No newline at end of file + - 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 }}