Skip to content

[新增ICNS图标自动生成工作流及资源文件] #2

[新增ICNS图标自动生成工作流及资源文件]

[新增ICNS图标自动生成工作流及资源文件] #2

Workflow file for this run

name: Make ICNS
on:
push:
paths:
- 'icns/**'
pull_request:
paths:
- 'icns/**'
jobs:
build:
name: Make ICNS
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Create and activate virtual environment, install dependencies, and generate icons
shell: bash
run: |
source activate_venv.sh
python3 -m pip install --upgrade pip
pip install -e .
for img in icns/*; do
python3 image-toolkit/make_icns.py "$img"
done
deactivate
ls -lh icns/*.icns
- name: Upload ICNS files
uses: actions/upload-artifact@v4
with:
name: icns-files
path: icns/*.icns