add build script
This commit is contained in:
20
.gitea/workflows/build.yaml
Normal file
20
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
on:
|
||||||
|
pull:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
- name: Set up Python
|
||||||
|
run: uv python install
|
||||||
|
- name: Build package
|
||||||
|
run: uv build
|
||||||
|
- name: Publish package
|
||||||
|
env:
|
||||||
|
USERNAME: ${{ github.repository_owner }}
|
||||||
|
run: run: uv publish --publish-url https://git.theprivateserver.de/api/packages/${USERNAME}/pypi/ -u $USERNAME -p ${{ secrets.PASSWORD }}
|
||||||
Reference in New Issue
Block a user