From bf75f14a6615d57d8a8e8f4a910e897106b8bdea Mon Sep 17 00:00:00 2001 From: Obijuan Date: Thu, 27 Jun 2024 19:36:48 +0200 Subject: [PATCH] add github action for manual publishin (Testing) --- .github/workflows/publish_manual.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish_manual.yml diff --git a/.github/workflows/publish_manual.yml b/.github/workflows/publish_manual.yml new file mode 100644 index 0000000..c8f227c --- /dev/null +++ b/.github/workflows/publish_manual.yml @@ -0,0 +1,34 @@ +name: Publish Pypi + +# Manual activation +on: [workflow_dispatch] + +jobs: + # -- Publish a new Apio release + publish: + runs-on: ubuntu-22.04 + steps: + # -- Checkout the main branch + - name: Checkout sources + uses: actions/checkout@v4 + with: + ref: master + + # -- Install and and configure python + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.9" + + # -- Install all the dependencies needed + - name: Install dependencies + run: | + make deps + + # -- Publish to Pypi!! + - name: Publish to PyPi + env: + FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }} + FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + make publish