From 3e4a7279432a68ada4be63efd403b5aae6bbffd9 Mon Sep 17 00:00:00 2001 From: Chris Ioannidis <142539198+acse-ci223@users.noreply.github.com> Date: Sun, 10 Dec 2023 03:53:13 +0000 Subject: [PATCH] Updated workflow --- .github/workflows/publish.yml | 57 ++++++++++++++++++----------------- .github/workflows/static.yml | 2 +- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6be4961..40e67ba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,33 +1,34 @@ -# name: Publish to PyPi -# on: -# push: -# branches: -# - main +name: Publish to PyPi -# jobs: -# build: -# name: Build distribution -# runs-on: ubuntu-latest +on: + push: + branches: + - main -# steps: -# - uses: actions/checkout@v4 -# - name: Set up Python -# uses: actions/setup-python@v4 -# with: -# python-version: "3.10" -# - name: Install pypa/build -# run: >- -# python3 -m -# pip install -# build -# --user -# - name: Build a binary wheel and a source tarball -# run: python3 -m build -# - name: Store the distribution packages -# uses: actions/upload-artifact@v3 -# with: -# name: python-package-distributions -# path: dist/ +jobs: + build: + name: Build distribution + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: python3 -m build + - name: Store the distribution packages + uses: actions/upload-artifact@v3 + with: + name: python-package-distributions + path: dist/ # publish-to-pypi: # name: >- diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 1ecccab..d08b6fe 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -47,7 +47,7 @@ jobs: - run: python3 -m pip install -e . - - run: python -m sphinx ./docs/doc_conf docs + - run: python -m sphinx-build ./docs/doc_conf docs - name: Deploy uses: peaceiris/actions-gh-pages@v3