fully working example and many fixes

This commit is contained in:
Yeicor
2024-03-05 20:58:14 +01:00
parent 37a1c5de1f
commit 1cbd1987b3
17 changed files with 270 additions and 89 deletions

View File

@@ -12,6 +12,12 @@ updates:
interval: "weekly"
day: "saturday"
time: "09:00"
- package-ecosystem: "pip"
directory: "/example"
schedule:
interval: "weekly"
day: "saturday"
time: "09:00"
- package-ecosystem: "github-actions"
directory: "/.github/workflows/"
schedule:

View File

@@ -21,7 +21,7 @@ jobs:
- uses: "actions/upload-artifact@v4"
with:
name: "frontend"
path: "./dist"
path: "dist"
retention-days: 5
build-backend:
@@ -29,9 +29,6 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v4"
with:
cache: "yarn"
- run: "pipx install poetry"
- uses: "actions/setup-python@v5"
with:
@@ -45,9 +42,6 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v4"
with:
cache: "yarn"
- run: "pipx install poetry"
- uses: "actions/setup-python@v5"
with:
@@ -59,5 +53,23 @@ jobs:
- uses: "actions/upload-artifact@v4"
with:
name: "logo"
path: "./assets/logo_build"
path: "assets/logo_build"
retention-days: 5
build-example:
name: "Build example"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.11"
cache: "pip"
- run: "pip install -r example/requirements.txt"
- run: "cd example && python object.py"
- run: "mv example/export/object.glb example/export/example.glb"
- uses: "actions/upload-artifact@v4"
with:
name: "example"
path: "example/export"
retention-days: 5

View File

@@ -17,6 +17,8 @@ concurrency:
cancel-in-progress: false
jobs:
# TODO: Update versions automatically
deploy-frontend:
runs-on: "ubuntu-latest"
environment:
@@ -35,6 +37,12 @@ jobs:
name: "logo"
path: "./public"
allow_forks: false
- uses: "dawidd6/action-download-artifact@v3"
with:
workflow: "build.yml"
name: "example"
path: "./public"
allow_forks: false
- uses: "actions/configure-pages@v4"
- uses: "actions/upload-pages-artifact@v3"
with: