2024-04-15 21:58:14 +08:00
|
|
|
name: Build and Publish
|
|
|
|
run-name: Build and Publish Package (${{ gitea.actor }})
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Run:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Info
|
|
|
|
run: echo "OS=${{ runner.os }} NAME=${{ gitea.event_name }} REPO=${{ gitea.repository }} BRANCH=${{ gitea.ref }} ST=${{ job.status }}"
|
2024-04-15 22:16:02 +08:00
|
|
|
- name: Prepare Source
|
|
|
|
run: |
|
|
|
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free">/etc/apt/sources.list
|
|
|
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free">>/etc/apt/sources.list
|
|
|
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free">>/etc/apt/sources.list
|
|
|
|
echo "deb https://security.debian.org/debian-security bullseye-security main contrib non-free">>/etc/apt/sources.list
|
|
|
|
cat /etc/apt/sources.list
|
2024-04-15 22:01:59 +08:00
|
|
|
- name: Prepare Python
|
2024-04-15 22:08:52 +08:00
|
|
|
run: |
|
2024-04-15 22:10:13 +08:00
|
|
|
apt-get update
|
|
|
|
apt-get install python3-pip
|
2024-04-15 22:08:52 +08:00
|
|
|
python3 -m pip install setuptools
|
2024-04-15 21:58:14 +08:00
|
|
|
- name: CheckOut
|
2024-04-15 22:01:59 +08:00
|
|
|
uses: http://hmtsai.cn:3000/actions/checkout@v4
|
2024-04-15 21:58:14 +08:00
|
|
|
- name: Build
|
|
|
|
run: python3 setup.py build
|
|
|
|
- name: Publish
|
|
|
|
run: echo "Publish..."
|