Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skim2257 committed Oct 13, 2022
1 parent ec167b7 commit 4adf148
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-pkg-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: pypi-manual

on:
workflow_dispatch:

jobs:
bob-the-builder:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest setuptools wheel twine
pip install -e .
pip install -r requirements.txt
- name: Build binary wheel and a source tarball
run: |
python setup.py install
python setup.py sdist bdist_wheel
- run: echo 'Tests successful. Publishing to PyPI now.'
- name: Build app (Ubuntu / macOS)
env:
USERNAME: ${{ secrets.pypi_username }}
KEY: ${{ secrets.pypi_pw }}
run: python -m twine upload --skip-existing -u $USERNAME -p $KEY dist/*
7 changes: 4 additions & 3 deletions .github/workflows/build-pkg.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish-pypi
name: pypi-on-master-push

on:
workflow_dispatch:

push:
branches:
- master
jobs:
bob-the-builder:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4adf148

Please sign in to comment.