Skip to content

feat(gui): 改进版本和资源文件加载逻辑 #10

feat(gui): 改进版本和资源文件加载逻辑

feat(gui): 改进版本和资源文件加载逻辑 #10

name: Python package
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: false
- name: Check out required packaging submodules
run: |
git submodule sync -- 3rd_party/meshio
git submodule update --init --depth=1 3rd_party/meshio
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install packaging tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build distributions
run: python -m build
- name: Check distributions
run: python -m twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/*
if-no-files-found: error