Skip to content

Commit

Permalink
app releases
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Sep 1, 2023
1 parent a326b1b commit 518f0db
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 5 deletions.
3 changes: 2 additions & 1 deletion capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"plugins": {
"CapacitorUpdater": {
"autoUpdate": true
"autoUpdate": true,
"updateUrl": "https://faas-sfo3-7872a1dd.doserverless.co/api/v1/web/fn-67f34cf4-c3ed-479c-839e-2f7206029fcb/wildweb/zrelease"
}
}
}
4 changes: 0 additions & 4 deletions static/release.json

This file was deleted.

7 changes: 7 additions & 0 deletions wwfunc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.nimbella
.deployed
__deployer__.zip
__pycache__/
node_modules
package-lock.json
.DS_Store
15 changes: 15 additions & 0 deletions wwfunc/packages/wildweb/zrelease/zrelease.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import requests

def main(event, context):
resp = requests.get("https://api.github.com/repos/pizzapanther/wildwoodag-v2/releases/latest")
data = resp.json()

version = data["tag_name"].replace("v", "")
url = data["assets"][0]["browser_download_url"]

return {
"body": {
"version": version,
"url": url
}
}
19 changes: 19 additions & 0 deletions wwfunc/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters: {}
environment: {}
packages:
- name: wildweb
shared: false
environment: {}
parameters: {}
annotations: {}
functions:
- name: zrelease
binary: false
main: ""
runtime: python:3.11
web: true
webSecure: false
parameters: {}
environment: {}
annotations: {}
limits: {}

0 comments on commit 518f0db

Please sign in to comment.