Skip to content

Commit

Permalink
cleanup deploy action with @IAlibay tips
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli committed Aug 1, 2022
1 parent 70932e2 commit 2d79a1b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Deploy gninatorch

on:
push:
branches:
- master
tags:
- "*"
release:
Expand All @@ -14,7 +12,6 @@ defaults:
run:
shell: bash -l {0}


jobs:
build:
if: "github.repository == 'RMeli/gnina-torch'"
Expand Down Expand Up @@ -44,3 +41,12 @@ jobs:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

# TODO: Install package and run tests from TestPyPI

- name: Publish on TestPyPI
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 2d79a1b

Please sign in to comment.