Skip to content

Commit aa06b55

Browse files
committed
update workflow to deploy minified python
1 parent 449ff5d commit aa06b55

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ jobs:
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v6
23+
- name: "Set up Python"
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version-file: ".python-version"
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
30+
with:
31+
enable-cache: true
32+
33+
- name: minify and move python scripts
34+
run: |
35+
mkdir -p public
36+
cp -R srcpy/*.py public/
37+
uv run --frozen --no-dev pyminify public/ --in-place --remove-literal-statements
38+
2339
- name: Install, build, and upload your site
2440
uses: withastro/action@v5
2541
with:

0 commit comments

Comments
 (0)