Skip to content

Update dependency (#286) #242

Update dependency (#286)

Update dependency (#286) #242

Workflow file for this run

name: Release PyPI Wheel
# on: [push, pull_request]
on:
push:
branches:
- main
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
container: trinkle23897/envpool-release:2023-01-02-5f1a5fd
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
run: |
ln -sf /root/.cache $HOME/.cache
ln -sf /root/.pyenv $HOME/.pyenv
pyenv global ${{ matrix.python-version }}-dev
- name: Build
run: |
make pypi-wheel
pip3 install dist/*.whl --force-reinstall
- name: Test
run: |
make release-test
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: wheel
path: wheelhouse/
publish:
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/download-artifact@v3
with:
path: artifact
- name: Move files so the next action can find them
run: |
mkdir dist && mv artifact/wheel/* dist/
ls dist/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}