Updated ci
This commit is contained in:
@@ -12,3 +12,15 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
uses: ./.gitea/workflows/package.yaml
|
uses: ./.gitea/workflows/package.yaml
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: src/cpl_core
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: build
|
||||||
|
uses: ./.gitea/workflows/publish.yaml
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: src/cpl_core
|
||||||
|
secrets: inherit
|
||||||
@@ -32,16 +32,3 @@ jobs:
|
|||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
python -m build --sdist --wheel --outdir dist
|
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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
outputs:
|
|
||||||
build_version:
|
|
||||||
value: ${{ jobs.prepare.outputs.build_version }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
|||||||
Reference in New Issue
Block a user