Skip to content

Add CD workflow for syftbox release #2

Add CD workflow for syftbox release

Add CD workflow for syftbox release #2

Workflow file for this run

name: CD - SyftBox
on:
# use this to test run it on the pr
pull_request:
branches: ["*"]
workflow_dispatch:
inputs:
bump_type:
description: "Version bump type"
required: true
type: choice
options:
- patch
- minor
- major
default: patch
# Prevents concurrent runs of the same workflow
# while the previous run is still in progress
concurrency:
group: "CD - SyftBox"
cancel-in-progress: false
jobs:
deploy-syftbox:
runs-on: ubuntu-latest
steps:
- name: Checkout SyftBox repo with github token
uses: actions/checkout@v4
# with:
# token: ${{ secrets.SYFTBOX_BOT_COMMIT_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv==0.4.1 twine
uv --version
- name: Install Just
uses: extractions/setup-just@v2
with:
just-version: "1.36.0"
- name: Bump the Version
run: |
just bump-version ${{ inputs.bump_type }}
- name: Build the New Vesrion
run: |
just build
# - name: Push to https://pypi.org/
# run: |
# twine upload -u __token__ -p ${{ secrets.OM_SYFTBOX_PYPI_TOKEN }} dist/*
# - name: Push changes to SyftBox repo
# run: |
# git config user.name "${{ secrets.OM_BOT_NAME }}"
# git config user.email "${{ secrets.OM_BOT_EMAIL }}"
# git push origin main