Skip to content

Commit 1d7493a

Browse files
Merge pull request #19 from StructuralPython/jupyterlite
update GHA
2 parents d68d8b6 + fde8e0a commit 1d7493a

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build wheel and Publish wheel to Bunny.net
2+
3+
on:
4+
push:
5+
branches:
6+
- jupyterlite # specify 'master' if that is your main branch
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade pip
16+
python -m pip install uv
17+
uv sync
18+
- name: Build package
19+
run: |
20+
uv build --wheel
21+
- name: Deploy to BunnyCDN
22+
uses: ayeressian/bunnycdn-storage-deploy@v2.3.0 #
23+
with:
24+
source: "./dist"
25+
destination: "wheels/pynite-tools"
26+
storageZoneName: "${{ secrets.STORAGE_NAME }}"
27+
storagePassword: "${{ secrets.STORAGE_PASSWORD }}"
28+
accessKey: "${{ secrets.STORAGE_KEY }}"
29+
pullZoneId: "${{ secrets.ZONE_ID }}"
30+
upload: "true"
31+
remove: "true"
32+
purgePullZone: "true"
33+
purgePullZoneDelay: "5"

.github/workflows/python-publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32-
python -m pip install flit
33-
flit install
34-
- name: Build package
35-
run: |
36-
flit build
32+
python -m pip install uv
33+
uv sync
3734
- name: Publish package
3835
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3936
with:
4037
user: __token__
41-
password: ${{ secrets.PYPI_API_TOKEN }}
38+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)