Updated ci
This commit is contained in:
@@ -12,3 +12,13 @@ jobs:
|
||||
build:
|
||||
needs: prepare
|
||||
uses: ./.gitea/workflows/package.yaml
|
||||
defaults:
|
||||
run:
|
||||
working-directory: src/cpl_core
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
uses: ./.gitea/workflows/publish.yaml
|
||||
defaults:
|
||||
run:
|
||||
working-directory: src/cpl_core
|
||||
@@ -32,16 +32,3 @@ jobs:
|
||||
- name: Build Package
|
||||
run: |
|
||||
python -m build --sdist --wheel --outdir dist
|
||||
|
||||
upload:
|
||||
- name: Login to registry git.sh-edraft.de
|
||||
uses: https://github.com/docker/login-action@v1
|
||||
with:
|
||||
registry: git.sh-edraft.de
|
||||
username: ${{ secrets.CI_USERNAME }}
|
||||
password: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
pip install twine
|
||||
python -m twine upload --repository-url https://git.sh-edraft.de/api/packages/sh-edraft.de/pypi -u ${{ secrets.CI_USERNAME }} -p ${{ secrets.CI_ACCESS_TOKEN }} ./dist/*
|
||||
@@ -3,9 +3,6 @@ run-name: Prepare Build Version
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
build_version:
|
||||
value: ${{ jobs.prepare.outputs.build_version }}
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
|
||||
Reference in New Issue
Block a user