From c35e2318997363a4744fa703efedddd9fb22dc8a Mon Sep 17 00:00:00 2001 From: Abolfazl Ziaeemehr Date: Mon, 24 Feb 2025 14:01:42 +0100 Subject: [PATCH 1/2] ci: Update GitHub Actions workflow to trigger on main branch pushes --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1ee247d..6f4ea92 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,8 +2,8 @@ name: build & push Docker image to ghcr on: push: - # branches: - # - main # Runs when pushing to develop branch + branches: + - main # Runs when pushing to develop branch tags: - v* # Runs when pushing tags starting with 'v' From fc2c9a31225cf07d920cf9c56edcbc8a864e00e5 Mon Sep 17 00:00:00 2001 From: Abolfazl Ziaeemehr Date: Mon, 24 Feb 2025 14:21:46 +0100 Subject: [PATCH 2/2] ci: Remove deprecated GitHub Actions workflow for publishing to PyPI --- .github/workflows/publish.yml | 41 ----------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index cc14161..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,41 +0,0 @@ -# name: Publish to PyPI - -# on: -# push: -# branches: -# - develop -# tags: -# - "v*" - -# jobs: -# deploy: -# runs-on: ubuntu-latest - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 - -# - name: Set up Python -# uses: actions/setup-python@v5 -# with: -# python-version: "3.10" - -# - name: Install build dependencies -# run: | -# python -m pip install --upgrade pip -# pip install build twine - -# - name: Compile C++ code -# run: | -# cd vbi/models/cpp/_src -# make - -# - name: Build package -# run: python -m build - -# - name: Publish to PyPI -# if: startsWith(github.ref, 'refs/tags/v') -# env: -# TWINE_USERNAME: __token__ -# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} -# run: twine upload dist/*