Skip to content

Delete archlinux directory #7

Delete archlinux directory

Delete archlinux directory #7

Workflow file for this run

name: Publish Package
on:
push:
branches:
- main # Trigger this workflow on pushes to the main branch
tags:
- 'v*.*.*' # Optionally trigger on tag pushes with version numbers
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9'] # Specify the Python version you want to use
runs-on: ${{ matrix.os == 'ubuntu-latest' || matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
if: matrix.os != 'ubuntu-latest'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: matrix.os != 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install build twine
- name: Build package
run: |
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
docker build -t my-package -f Dockerfile . && docker run my-package
else
python -m build
fi
- name: Publish to PyPI
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/*