Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build GitHub actions based CI to publish to PyPI on releases #10

Open
whatnick opened this issue Apr 3, 2021 · 2 comments
Open

Build GitHub actions based CI to publish to PyPI on releases #10

whatnick opened this issue Apr 3, 2021 · 2 comments

Comments

@whatnick
Copy link

whatnick commented Apr 3, 2021

I would like to contribute by building a GitHub actions based CI to publish to PyPI on release tags. As a pre-requisite for this to ensure code quality and stability an appropriate PyCQA suite and Testing suite is necessary.

@j0ono0
Copy link
Owner

j0ono0 commented Apr 7, 2021

Sounds great. I'll need to revise my general development and QA processes to match with the automation (A good thing).

@umarcor
Copy link

umarcor commented May 24, 2021

For reference (https://github.com/VUnit/vunit/blob/master/.github/workflows/push.yml#L193-L227):

  deploy:
    runs-on: ubuntu-latest
    if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
    steps:

    - name: '🧰 Checkout'
      uses: actions/checkout@v2
      with:
        submodules: recursive

    - name: '🐍 Setup Python'
      uses: actions/setup-python@v2
      with:
        python-version: 3.9

    - name: '🐍 Install dependencies'
      run: |
        pip install -U pip
        pip install -U setuptools wheel twine
        
    - name: '🚀 Build and deploy to PyPI'
      if: github.repository == 'j0ono0/pinout'
      env:
        TWINE_USERNAME: __token__
        TWINE_PASSWORD: ${{ secrets.DEPLOY_TOKEN }}
      run: |
        python setup.py sdist
        twine upload dist/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants