Updated build number and gitea workflow
All checks were successful
Build python package / Build (push) Successful in 38s

This commit is contained in:
2026-03-28 20:26:12 +01:00
parent 0155644b65
commit 6599b967ab
2 changed files with 14 additions and 5 deletions

View File

@@ -4,16 +4,25 @@ on: [push]
jobs:
Build:
runs-on: windows
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: Setting up python modules to build package
run: |
python -m pip install build twine
- name: Building the package
run: |
powershell mv ${{ gitea.workspace }}\GLPIAPI.py ${{ gitea.workspace }}\build\src\GLPIAPI\
cd ${{ gitea.workspace }}\build
mkdir ${{ gitea.workspace }}/build/src/GLPIAPI/
mv ${{ gitea.workspace }}/GLPIAPI.py ${{ gitea.workspace }}/build/src/GLPIAPI/GLPIAPI.py
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\*
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'