All checks were successful
Build python package / Build (push) Successful in 15s
19 lines
670 B
YAML
19 lines
670 B
YAML
name: Build python package
|
|
run-name: building python package AirwatchAPI
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: windows
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@main
|
|
- name: Building the package
|
|
run: |
|
|
mv ${{ gitea.workspace }}\AirwatchAPI.py ${{ gitea.workspace }}\build\src\AirwatchAPI\
|
|
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' |