Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/release_oonidata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish oonidata to PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x' # Specify the Python version

- name: Install Hatch
run: |
python -m pip install --upgrade pip
pip install hatch

- name: Publish oonidata
run: |
cd oonidata
hatch publish
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
if: secrets.PYPI_TOKEN != '' # Only run if PYPI_TOKEN is set