Projects STRLCPY hiphp Commits df41cb54
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .github/workflows/pipup.yml
    1  -name: PYPI
    2  -on: [push]
    3  -#defaults:
    4  -# run:
    5  -# working-directory: wrdir
     1 +name: Publish to PyPI and TestPyPI
     2 + 
     3 +on: push
     4 + 
    6 5  jobs:
    7  - #deploy:
    8  - # runs-on: windows-latest
    9  - # steps:
    10  - # - name: install readline
    11  - # run: python -m pip install readline
    12  - build:
    13  - runs-on: ${{matrix.os}}
    14  - strategy:
    15  - matrix:
    16  - os: [ubuntu-latest] #,windows-latest
    17  - python-version: [3.9]
     6 + build-n-publish:
     7 + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
     8 + runs-on: ubuntu-latest
    18 9   steps:
    19  - - uses: actions/checkout@v3
    20  - - name: Set up Python ${{matrix.python-version}}
    21  - uses: actions/setup-python@v4
    22  - with:
    23  - python-version: ${{matrix.python-version}}
    24  - # Optional - x64 or x86 architecture, defaults to x64
    25  - architecture: 'x64'
    26  - # You can test your matrix by printing the current Python version
    27  - - name: Display Python version
    28  - run: python -c "import sys; print(sys.version)"
    29  - - name: Create Workspace Folder
    30  - run: mkdir -p wrdir && mkdir -p wrdir/hiphp
    31  - - name: Copy Files & folders to Workspace Folder
    32  - run: cp -r hiphp/* wrdir/hiphp && cp pypiup.py wrdir/pypiup.py && cp setup.py wrdir/setup.py && cp setup.cfg wrdir/setup.cfg
    33  - - name: pip Upgrade
    34  - run: python -m pip install --upgrade pip
    35  - - name: Install requirements
    36  - run: bash install_all_requirements_linux.sh
    37  - - name: Run
    38  - run: python wrdir/pypiup.py ${{ secrets.PYPI_USER }} ${{ secrets.PYPI_API_TOKEN }}
     10 + - uses: actions/checkout@master
     11 + - name: Set up Python 3.10
     12 + uses: actions/setup-python@v3
     13 + with:
     14 + python-version: "3.10"
     15 + - name: Install pypa/build
     16 + run: >-
     17 + python -m
     18 + pip install
     19 + build
     20 + --user
     21 + - name: Build a binary wheel and a source tarball
     22 + run: >-
     23 + python -m
     24 + build
     25 + --sdist
     26 + --wheel
     27 + --outdir dist/
     28 + .
     29 + - name: Publish distribution 📦 to Test PyPI
     30 + uses: pypa/gh-action-pypi-publish@release/v1
     31 + with:
     32 + password: ${{ secrets.PYPI_API_TOKEN }}
     33 + repository_url: https://test.pypi.org/legacy/
     34 + - name: Publish distribution 📦 to PyPI
     35 + if: startsWith(github.ref, 'refs/tags')
     36 + uses: pypa/gh-action-pypi-publish@release/v1
     37 + with:
     38 + password: ${{ secrets.PYPI_API_TOKEN }}
     39 + 
Please wait...
Page is in error, reload to recover