Skip to content

Commit

Permalink
Merge pull request #12 from MohammadrezaAmani/inui-0.9-hotreload
Browse files Browse the repository at this point in the history
update github action.
  • Loading branch information
MohammadrezaAmani authored Oct 27, 2024
2 parents 8566576 + 384b535 commit acd2a16
Showing 1 changed file with 16 additions and 25 deletions.
41 changes: 16 additions & 25 deletions .github/workflows/pipy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,23 @@ name: Publish to PyPI

on:
push:
tags:
- '*'
branches:
- main
jobs:
build-n-publish:
name: publish to PyPI
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install pypa/setuptools
run: >-
python -m
pip install wheel
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- 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
run: >-
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install dependencies
run: python -m pip install setuptools wheel
- name: Build a binary wheel
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit acd2a16

Please sign in to comment.