Skip to content

Commit b7ee973

Browse files
authored
Merge pull request #135 from lgc2333/main
refactor: support multi platform
2 parents 8b967cf + 13463f0 commit b7ee973

38 files changed

+3328
-896
lines changed

.github/renovate.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/pypi-publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-n-publish:
10+
name: Use PDM to Build and publish Python 🐍 distributions 📦 to PyPI
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@master
20+
with:
21+
submodules: true
22+
23+
- name: Setup PDM
24+
uses: pdm-project/setup-pdm@v3
25+
26+
- name: Build and Publish distribution 📦 to PyPI
27+
run: pdm publish

.github/workflows/python-publish.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Update Help Image
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/update-help-image.yml'
7+
- 'scripts/update_help_image/**'
8+
- 'docs/usage.md'
9+
- 'YetAnotherPicSearch/res/usage.jpg'
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
submodules: true
20+
21+
- name: Setup PDM
22+
uses: pdm-project/setup-pdm@v4
23+
with:
24+
python-version: '3.12'
25+
# cache: true
26+
27+
- name: Install Pre-requisites
28+
run: |-
29+
sudo apt-get install -y fonts-noto
30+
31+
- name: Run Job
32+
run: |-
33+
cd scripts
34+
pdm install -G:all
35+
pdm run update-help-image
36+
37+
- name: Commit and Push
38+
run: |-
39+
if [[ -n "$(git status -s)" ]]; then
40+
git add .
41+
git config user.name github-actions[bot]
42+
git config user.email github-actions[bot]@users.noreply.github.com
43+
git commit -m "chore: update help image"
44+
git push
45+
else
46+
echo "No changes detected."
47+
fi

.pre-commit-config.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)