Co-authored-by: Emil Simeonov <emil@theliberatededge.org> Reviewed-on: #1
24 lines
525 B
YAML
24 lines
525 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:
|
|
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
run: |
|
|
python3 scripts/publish.py \
|
|
"${{ github.ref_name }}" \
|
|
"${{ github.repository }}"
|