Files
GLPIAPI/.gitea/workflows/build.yaml
Jason Secula bd14c8665e
Some checks failed
Build python package / Build (push) Failing after 17s
Updated build workflow for gitea
2026-03-28 19:55:18 +01:00

24 lines
893 B
YAML

name: Build python package
run-name: building python package GLPIAPI
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
container:
image: python
steps:
- name: Act Workaround # https://github.com/nektos/act/issues/973
if: ${{ env.ACT }}
run: curl -fsSL https://deb.nodesource.com/setup_22.x | bash && apt install -y nodejs
- name: Check out repository code
uses: actions/checkout@main
- name: Building the package
run: |
mv ${{ gitea.workspace }}/GLPIAPI.py ${{ gitea.workspace }}/build/src/GLPIAPI/
cd ${{ gitea.workspace }}/build
python -m build
- name: Publish package
run: |
python -m twine upload -u ${{ secrets.repo_user }} -p ${{ secrets.repo_pass }} --repository-url ${{ secrets.repo_url }} ${{ gitea.workspace }}\build\dist\*
if: github.ref_type == 'tag'