CI: build package (#1564)

This commit is contained in:
Dulmandakh 2024-09-29 19:40:19 +08:00 committed by GitHub
parent 431826814d
commit f2e68141fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

21
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,21 @@
name: 📦 Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Building package
run: python3 -m build
- name: Check package with Twine
run: twine check dist/*