Skip to content

Commit

Permalink
Neue Github Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
shMeske committed Nov 1, 2023
1 parent 6e37e9c commit 986e42b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test and Build
name: Test, Build an Deploy

on:
push:
Expand Down Expand Up @@ -34,13 +34,13 @@ jobs:
if: ${{ matrix.python-version == '3.10' }}
run: |
poetry run poe build_pipelines
- name: Deploy_to_pages
- name: Deploy to Github Pages
if: ${{ matrix.python-version == '3.10' }}
uses: crazy-max/ghaction-github-pages@v4
with:
dry_run: true
target_branch: gh-pages
build_dir: dashboard
build_dir: index
keep_history: true
commit_message: Automatic deployment to GitHub Pages
env:
Expand Down
4 changes: 2 additions & 2 deletions convert_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

POSSIBLE_PIPELINES = ["physiological", "sleep", "questionnaire", "saliva"]
OWN_NAME = "combine_all_files.py"
RESULTING_FILENAME = "dashboard"
RESULTING_FILENAME = "index"
RESULTING_SINGLE_PIPELINE_FILENAME = "single_dashboard"
MAIN_FILE = "main.py"
IGNORE_FOLDERS = ["build", "dist", "pyodide", "pyscript", "Miscellaneous"]
Expand Down Expand Up @@ -255,7 +255,7 @@ def convert_to_pyodide(selected_pipeline: str):
combined_file += "_pipeline"
print("Converting to pyodide")
exit_code = os.system(
f"panel convert {combined_file}.py --to pyodide-worker --out dashboard --pwa"
f"panel convert {combined_file}.py --to pyodide-worker --out {RESULTING_FILENAME} --pwa"
)
if exit_code != 0:
print("Error while converting to pyodide")
Expand Down
2 changes: 1 addition & 1 deletion dashboard/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const appName = 'Panel Pyodide App'
const appCacheName = 'Panel Pyodide App-035d66a605b149b0a37d317d9616c7d0';
const appCacheName = 'Panel Pyodide App-2e03383b222a4373adc14fdcc345f530';

const preCacheFiles = ['images/favicon.ico', 'images/icon-vector.svg', 'images/icon-32x32.png', 'images/icon-192x192.png', 'images/icon-512x512.png', 'images/apple-touch-icon.png', 'images/index_background.png'];

Expand Down
2 changes: 1 addition & 1 deletion dashboard/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Panel Applications",
"short_name": "Panel Applications",
"start_url": "dashboard.html",
"start_url": "index.html",
"icons": [
{
"src": "images/icon-vector.svg",
Expand Down

0 comments on commit 986e42b

Please sign in to comment.