mirror of https://github.com/pyodide/pyodide.git
37 lines
810 B
YAML
37 lines
810 B
YAML
name: deploy-release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*.*.*"
|
|
jobs:
|
|
deploy-pyodide-build-pypi:
|
|
runs-on: ubuntu-latest
|
|
environment: PyPi
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.10.2"
|
|
|
|
- name: Install dependencies
|
|
run: python -m pip install build twine
|
|
|
|
- name: Build wheel
|
|
run: |
|
|
cd pyodide-build/
|
|
python -m build .
|
|
|
|
- name: Check wheel
|
|
run: |
|
|
twine check pyodide-build/dist/*
|
|
|
|
- name: Publish to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
packages_dir: pyodide-build/dist/
|