populated publish-analysis.yml

moved legacy versions of analysis to seperate subfolder

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2020-08-02 22:43:09 +00:00
parent a83adf1ea7
commit d9c71b0c99
9 changed files with 14 additions and 10 deletions

View File

@ -1,17 +1,22 @@
# This workflows will upload a Python Package using Twine when a release is created # This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package name: Upload Analysis Package
on: on:
release: push:
types: [created] branches: [ publish-analysis ]
pull_request:
branches: [ publish-analysis ]
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
working-directory: ./analysis-master/
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
@ -22,10 +27,9 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install setuptools wheel twine pip install setuptools wheel twine
- name: Build and publish - name: Publish package to PyPI
env: uses: pypa/gh-action-pypi-publish@master
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} with:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} user: __token__
run: | password: ${{ secrets.PYPI_TOKEN }}
python setup.py sdist bdist_wheel packages_dir: /dist/*
twine upload dist/*