tra-analysis/.github/workflows/publish-analysis.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

Implement CD with building on tags to PyPI (#34) * Create python-publish.yml * populated publish-analysis.yml moved legacy versions of analysis to seperate subfolder Signed-off-by: Arthur Lu <learthurgo@gmail.com> * attempt to fix issue with publish action Signed-off-by: Arthur Lu <learthurgo@gmail.com> * another attempt o fix publish-analysis.yml Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * pypa can't take just one package so i'm trying all Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should totally work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> * rename analysis to tra_analysis, bump version to 2.0.0 * remove old packages which are already on github releases * remove pycache * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> * build * do the dir thing * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * rename analysis to tra_analysis, bump version to 2.0.0 Signed-off-by: Dev Singh <dev@devksingh.com> * remove old packages which are already on github releases Signed-off-by: Dev Singh <dev@devksingh.com> * remove pycache Signed-off-by: Dev Singh <dev@devksingh.com> * build Signed-off-by: Dev Singh <dev@devksingh.com> * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * do the dir thing Signed-off-by: Dev Singh <dev@devksingh.com> * Revert "do the dir thing" This reverts commit 2eb7ffca8d77968e824d4f6e914fde8e74792f71. * correct dir * set correct yaml positions Signed-off-by: Dev Singh <dev@devksingh.com> * attempt to set correct dir Signed-off-by: Dev Singh <dev@devksingh.com> * run on tags only Signed-off-by: Dev Singh <dev@devksingh.com> * remove all caches from vcs Signed-off-by: Dev Singh <dev@devksingh.com> * bump version for testing Signed-off-by: Dev Singh <dev@devksingh.com> * remove broke build Signed-off-by: Dev Singh <dev@devksingh.com> * dont upload dists to github Signed-off-by: Dev Singh <dev@devksingh.com> * bump to 2.0.2 for testing Signed-off-by: Dev Singh <dev@devksingh.com> * fix yaml Signed-off-by: Dev Singh <dev@devksingh.com> * update docs Signed-off-by: Dev Singh <dev@devksingh.com> * add to readme Signed-off-by: Dev Singh <dev@devksingh.com> * run only on master Signed-off-by: Dev Singh <dev@devksingh.com> Co-authored-by: Arthur Lu <learthurgo@gmail.com> Co-authored-by: Dev Singh <dsingh@CentaurusRidge.localdomain>
2020-08-10 19:29:51 +00:00
# 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
name: Upload Analysis Package
on:
release:
types: [published, edited]
Implement CD with building on tags to PyPI (#34) * Create python-publish.yml * populated publish-analysis.yml moved legacy versions of analysis to seperate subfolder Signed-off-by: Arthur Lu <learthurgo@gmail.com> * attempt to fix issue with publish action Signed-off-by: Arthur Lu <learthurgo@gmail.com> * another attempt o fix publish-analysis.yml Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * pypa can't take just one package so i'm trying all Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should totally work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> * rename analysis to tra_analysis, bump version to 2.0.0 * remove old packages which are already on github releases * remove pycache * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> * build * do the dir thing * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * rename analysis to tra_analysis, bump version to 2.0.0 Signed-off-by: Dev Singh <dev@devksingh.com> * remove old packages which are already on github releases Signed-off-by: Dev Singh <dev@devksingh.com> * remove pycache Signed-off-by: Dev Singh <dev@devksingh.com> * build Signed-off-by: Dev Singh <dev@devksingh.com> * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * do the dir thing Signed-off-by: Dev Singh <dev@devksingh.com> * Revert "do the dir thing" This reverts commit 2eb7ffca8d77968e824d4f6e914fde8e74792f71. * correct dir * set correct yaml positions Signed-off-by: Dev Singh <dev@devksingh.com> * attempt to set correct dir Signed-off-by: Dev Singh <dev@devksingh.com> * run on tags only Signed-off-by: Dev Singh <dev@devksingh.com> * remove all caches from vcs Signed-off-by: Dev Singh <dev@devksingh.com> * bump version for testing Signed-off-by: Dev Singh <dev@devksingh.com> * remove broke build Signed-off-by: Dev Singh <dev@devksingh.com> * dont upload dists to github Signed-off-by: Dev Singh <dev@devksingh.com> * bump to 2.0.2 for testing Signed-off-by: Dev Singh <dev@devksingh.com> * fix yaml Signed-off-by: Dev Singh <dev@devksingh.com> * update docs Signed-off-by: Dev Singh <dev@devksingh.com> * add to readme Signed-off-by: Dev Singh <dev@devksingh.com> * run only on master Signed-off-by: Dev Singh <dev@devksingh.com> Co-authored-by: Arthur Lu <learthurgo@gmail.com> Co-authored-by: Dev Singh <dsingh@CentaurusRidge.localdomain>
2020-08-10 19:29:51 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
env:
working-directory: ./analysis-master/
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
working-directory: ${{env.working-directory}}
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
2021-04-30 22:40:49 +00:00
pip install -r requirements.txt
Implement CD with building on tags to PyPI (#34) * Create python-publish.yml * populated publish-analysis.yml moved legacy versions of analysis to seperate subfolder Signed-off-by: Arthur Lu <learthurgo@gmail.com> * attempt to fix issue with publish action Signed-off-by: Arthur Lu <learthurgo@gmail.com> * another attempt o fix publish-analysis.yml Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * pypa can't take just one package so i'm trying all Signed-off-by: Arthur Lu <learthurgo@gmail.com> * this should totally work now Signed-off-by: Arthur Lu <learthurgo@gmail.com> * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> * rename analysis to tra_analysis, bump version to 2.0.0 * remove old packages which are already on github releases * remove pycache * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> * build * do the dir thing * trying removing custom dir Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * rename analysis to tra_analysis, bump version to 2.0.0 Signed-off-by: Dev Singh <dev@devksingh.com> * remove old packages which are already on github releases Signed-off-by: Dev Singh <dev@devksingh.com> * remove pycache Signed-off-by: Dev Singh <dev@devksingh.com> * build Signed-off-by: Dev Singh <dev@devksingh.com> * removed ipynb_checkpoints Signed-off-by: Arthur Lu <learthurgo@gmail.com> Signed-off-by: Dev Singh <dev@devksingh.com> * do the dir thing Signed-off-by: Dev Singh <dev@devksingh.com> * Revert "do the dir thing" This reverts commit 2eb7ffca8d77968e824d4f6e914fde8e74792f71. * correct dir * set correct yaml positions Signed-off-by: Dev Singh <dev@devksingh.com> * attempt to set correct dir Signed-off-by: Dev Singh <dev@devksingh.com> * run on tags only Signed-off-by: Dev Singh <dev@devksingh.com> * remove all caches from vcs Signed-off-by: Dev Singh <dev@devksingh.com> * bump version for testing Signed-off-by: Dev Singh <dev@devksingh.com> * remove broke build Signed-off-by: Dev Singh <dev@devksingh.com> * dont upload dists to github Signed-off-by: Dev Singh <dev@devksingh.com> * bump to 2.0.2 for testing Signed-off-by: Dev Singh <dev@devksingh.com> * fix yaml Signed-off-by: Dev Singh <dev@devksingh.com> * update docs Signed-off-by: Dev Singh <dev@devksingh.com> * add to readme Signed-off-by: Dev Singh <dev@devksingh.com> * run only on master Signed-off-by: Dev Singh <dev@devksingh.com> Co-authored-by: Arthur Lu <learthurgo@gmail.com> Co-authored-by: Dev Singh <dsingh@CentaurusRidge.localdomain>
2020-08-10 19:29:51 +00:00
- name: Build package
working-directory: ${{env.working-directory}}
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: analysis-master/dist/