rupload/.gitea/workflows/build.yaml

31 lines
953 B
YAML
Raw Permalink Normal View History

2024-11-26 05:04:33 +00:00
name: RUpload build
run-name: RUpload build
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "Install dependencies."
- run: apt update
- run: apt install python3 python3-pip python3-venv make -y
- run: echo "Create environment."
- run: make ensure_env
- run: echo "Create build."
- run: make build
- run: echo "Install package."
- run: make install
- run: echo "Test installation."
- run: ./.venv/bin/rupload.serve --help
- run: git add .
- run: git config --global user.email "bot@molodetz.com"
- run: git config --global user.name "bot"
- run: git commit -a -m "Update build files."
- run: git push
- run: echo "This job's status is ${{ job.status }}."