kopia lustrzana https://github.com/Langenfeld/py-gitea
Update deploy.yml
rodzic
01831d405b
commit
516b919d44
|
@ -7,28 +7,27 @@ on:
|
|||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
name: Build and py-allspice 📦 to PyPI
|
||||
name: Build and deploy py-allspice 📦 to PyPI
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install pypa/setuptools
|
||||
run: >-
|
||||
python -m
|
||||
pip install wheel
|
||||
python -m pip install build
|
||||
- name: Extract tag name
|
||||
id: tag
|
||||
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3 | sed -e 's/v//1')
|
||||
- name: Update version in setup.py
|
||||
run: >-
|
||||
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
|
||||
- name: Build a binary wheel
|
||||
sed -i "s/{{\s*VERSION_PLACEHOLDER\s*}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
|
||||
- name: Build a wheel
|
||||
run: >-
|
||||
python setup.py sdist bdist_wheel
|
||||
python -m build
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
password: ${{ secrets.PYPI_DEPLOY_TOKEN }}
|
Ładowanie…
Reference in New Issue