This commit is contained in:
21
.gitea/workflows/build.yml
Normal file
21
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
name: build
|
||||
on:
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: fedora-builder
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Build package
|
||||
run: python3 -m build
|
||||
- name: run tox
|
||||
run: tox
|
||||
- name: Upload na pypi
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secret.PYPI_USER }}
|
||||
TWINE_PASSWORD: ${{ secret.PYPI_PASSWORD }}
|
||||
if: github.ref_type == 'tag'
|
||||
run: python3 -m twine upload dist/*
|
Reference in New Issue
Block a user