Files
grm/.gitea/workflows/publish.yml
T

24 lines
527 B
YAML

name: Publish Release
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Install build tools
run: |
python3 -m pip install build twine requests
- name: Build and publish release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python3 scripts/publish.py \
"${{ github.ref_name }}" \
"${{ github.repository }}"