Skip to content

Commit

Permalink
ready for release to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jul 25, 2021
1 parent 8cb522a commit 399d521
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ name: CI
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
release:
types: [published]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Check_Python_pkg:
Python_pkg:
runs-on: ubuntu-latest
steps:
- name: Checkout this Repo
Expand All @@ -23,14 +25,27 @@ jobs:

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
- name: Check formatting
run: pylint rmskin_builder.py

- name: Prepare for pypi
if: github.event_name == 'release'
run: pip install setuptools wheel twine

- name: Build and publish
if: github.event_name == 'release'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
python setup.py sdist
twine upload dist/*
Build:
# needs: Check_Python_pkg
runs-on: ubuntu-latest
steps:
- name: Checkout this Repo
Expand Down

0 comments on commit 399d521

Please sign in to comment.