Remnawave_python-sdk/github/workflows/upload.yml
Artem f47cda9378
feat: Add models for subscriptions, users, and system statistics
- Implemented TemplateResponseDto and UpdateTemplateRequestDto for subscription templates.
- Created models for system statistics including CPU, memory, and bandwidth.
- Developed user models for user creation, updates, and responses.
- Added bulk actions for user updates and statistics tracking.
- Introduced tests for authentication, bandwidth statistics, hosts, inbounds, key generation, nodes, subscriptions, and user management.
- Enhanced utility functions for generating random strings, emails, and date ranges for testing.
2025-04-21 20:44:27 +02:00

54 lines
1.5 KiB
YAML

name: Publish Python Package
on:
push:
branches:
- production
permissions:
contents: write
id-token: write
packages: write
jobs:
publish:
runs-on: ubuntu-latest
needs: bump-version
steps:
- name: Checkout repository
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Pull latest changes
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
run: git pull origin production --tags --force
- name: Set up Python
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
run: |
python -m pip install --upgrade pip
pip install build wheel
- name: Build package
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
run: python -m build
- name: Inspect METADATA (for debug)
run: |
unzip dist/*.whl -d temp/
cat temp/*.dist-info/METADATA
- name: Publish package
if: ${{ !contains(github.event.head_commit.message, '[skip publish]') }}
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}