From 3629f4e488afdd114f23e7dc6c5b7331aeb1f677 Mon Sep 17 00:00:00 2001 From: philipMartini <45294280+philipMartini@users.noreply.github.com> Date: Sat, 13 Mar 2021 23:25:01 +0100 Subject: [PATCH] Update python-PyCTBN-package.yml --- .github/workflows/python-PyCTBN-package.yml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/python-PyCTBN-package.yml b/.github/workflows/python-PyCTBN-package.yml index c8d0ea6..aa1fa2d 100644 --- a/.github/workflows/python-PyCTBN-package.yml +++ b/.github/workflows/python-PyCTBN-package.yml @@ -42,3 +42,29 @@ jobs: - name: Test with pytest run: | pytest PyCTBN/tests/ + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + git clone https://github.com/philipMartini/PyCTBN --branch master --single-branch + python -m + build + --sdist + --wheel + --outdir dist/. + git config --local user.email "f.martini@campus.unimib.it" + git config --local user.name "philipMartini" + git add . + git commit -m "Create New Realease at dist/" -a || true + # The above command will fail if no changes were present, so we ignore + # that. + #git pull origin + - name: Push changes + uses: ad-m/github-push-action@master + with: + branch: master + github_token: ${{ secrets.PYCTBN_TOK }}