Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #23

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #23

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
# Build job. Builds source distribution (sdist) and binary wheels distribution (bdist_wheel)
build:
name: Build ${{ matrix.dist }} [${{ matrix.python-version }} | ${{ matrix.os }} ${{ matrix.architecture }}]
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest # Modify one element to build source distribution
python-version: 3.7
architecture: x64
dist: sdist bdist_wheel
runs-on: ${{ matrix.os }}
env:
PYTHONUNBUFFERED: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Build
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
python setup.py ${{ matrix.dist }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
# Deploy job. Uploads distribution to PyPI (only on tags)
deploy:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
PYTHONUNBUFFERED: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/[email protected]
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: dist/