mirror of
https://github.com/nox-project/nox-framework.git
synced 2026-06-08 16:07:17 +00:00
44 lines
918 B
YAML
44 lines
918 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 -r requirements.txt pytest pytest-asyncio
|
|
|
|
- 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 source plugins
|
|
run: python build_sources.py
|
|
|
|
- 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 }}
|