Files
nox-project-nox-framework/.github/workflows/release.yml
T
2026-04-07 10:17:43 +02:00

41 lines
903 B
YAML

name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install pytest pytest-asyncio aiohttp pydantic colorama rich fpdf2 dnspython phonenumbers stem cloudscraper
- name: Run tests
run: python -m pytest tests/ -v
- name: Install fpm
run: |
sudo apt-get install -y ruby ruby-dev build-essential
sudo gem install fpm
- name: Build .deb
run: bash build_deb.sh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/*.deb
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}