Skip to content

Refactor CTFCLI to more OOP approach #112

Refactor CTFCLI to more OOP approach

Refactor CTFCLI to more OOP approach #112

Workflow file for this run

name: Build wheels
on:
release:
types: [published]
pull_request:
types: [opened, reopened, edited, synchronize]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
# Install dependencies
- name: Install dependencies
run: |
pip install poetry
poetry install
# Build wheels
- name: Build wheels
run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v2
with:
path: |
./dist/*.tar.gz
# Publish to pypi
- name: Publish to pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
if: ${{ github.event_name == 'release' && env.TWINE_USERNAME != null }}
run: twine upload --repository pypi dist/*