43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
---
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
|
|
build_wheel:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
- name: Build Python wheel
|
|
run: |
|
|
apt update; apt install -y python3-pip
|
|
pip3 install --break-system-packages -e .[test]
|
|
python3 setup.py egg_info bdist_wheel
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-wheel-package-upload@v3
|
|
with:
|
|
username: ${{ secrets.API_USERNAME }}
|
|
password: ${{ secrets.API_PASSWORD }}
|
|
|
|
build_debian:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
- name: Prepare package
|
|
run: |
|
|
find package/debian -name .gitkeep -delete
|
|
# Copy example plugin
|
|
install -m0644 examples/plugins/filestate.py package/debian/spaceapi-server/etc/spaceapi-server/plugins/filestate.py
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-python-debian-package@v4
|
|
with:
|
|
python_module: spaceapi_server
|
|
package_name: spaceapi-server
|
|
package_root: package/debian/spaceapi-server
|
|
package_output_path: package/debian
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
|
|
with:
|
|
username: ${{ secrets.API_USERNAME }}
|
|
password: ${{ secrets.API_PASSWORD }}
|
|
deb: "package/debian/*.deb"
|