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