Skip to content

Commit

Permalink
Minor mod
Browse files Browse the repository at this point in the history
  • Loading branch information
olokobayusuf committed Mar 20, 2024
1 parent 7b1ff43 commit 63561f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/edge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to TestPyPi

on: workflow_dispatch

jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
python3 -m pip install -r requirements.txt
- name: Pull EdgeFunction
run: python3 edgefxn.py

- name: Build
run: |
ls fxn/libs/macos
ls fxn/libs/windows
python3 setup.py sdist bdist_wheel
1 change: 1 addition & 0 deletions edgefxn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def _download_fxnc (name: str, version: str, path: Path):
response.raise_for_status()
with open(path, "wb") as f:
f.write(response.content)
print(f"Wrote {name} {version} to path: {path}")

def _get_latest_version () -> str:
response = get(f"https://api.github.com/repos/fxnai/fxnc/releases/latest")
Expand Down

0 comments on commit 63561f1

Please sign in to comment.