Skip to content

add adsbexchange_feeder data provider #39

add adsbexchange_feeder data provider

add adsbexchange_feeder data provider #39

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: release
on:
push:
tags:
- "v*"
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Extract version from tag
id: version
run: |
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Update version
run: |
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
shell: bash
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install -e .[test]
pip uninstall -y local-flight-map
- name: Run tests
run: |
pytest
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
skip-existing: true
- name: Create Release
uses: softprops/action-gh-release@v2
with:
draft: "false"
generate_release_notes: "true"
make_latest: "true"
prerelease: "false"
- name: Trigger Deploy Workflow
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: deploy-trigger
client-payload: '{"ref": "${{ github.ref }}"}'