Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.temp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AUTH0_DOMAIN={Your Auth0 domain}.auth0.com
AUTH0_CLIENT_ID={Your Auth0 client id}
AUTH0_CLIENT_SECRET={Your Auth0 secret}

AZURE_BLOB_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName={Your azure blob storage connection string}
36 changes: 36 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SharpEngine Pipelines

## Pull Request pipelines



## Deployment Pipelines

SharpEngine consists of 5 different deployment pipelines:
- Publish Core
- Publish Asset Store
- Publish Web
- Publish Docs
- Publish Launcher

All of these pipelines are responsible of building and exposing the respective components of the system.

### Publish Core
The `publish-core.yml` creates a zip file of the engine and adds a tag to github and the zip to the releases section. That tag is also added for the commit that it was built off. If a tag for the commit this is being run-off is already found, we don't want to create another copy of the essentially the same version so we skip it.

### Publish Asset Store
The `publish-asset-store.yml` is responsible of deploying the Asset Store web interface, API and Database into Azure.

All Asset Store's resources can be found under the `rg-asset-store` resource group.
TODO: Enable from selected access ips

### Publish Web
The `publish-web.yml` is responsible of (similarly to the Asset Store) deploying the SharpEngine web interface, API and Database into Azure.

All SharpEngine Web's resources can be found under the `rg-sharpengine-web` resource group.

### Publish Docs
The `publish-docs.yml` deploys the documentation files under the ´./docs´ in the root of the repository into the `docs.sharpengine.com` site.

### Publish Launcher
The ``
64 changes: 64 additions & 0 deletions .github/workflows/azure-static-web-apps-white-sky-0acd4ad03.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Publish Asset Store

on:
push:
branches:
# - main
- feature/52-av-web
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
# - main
- feature/52-av-web

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false

- name: Install OIDC Client from Core Package
run: npm install @actions/core@1.6.0 @actions/http-client

- name: Get Id Token
uses: actions/github-script@v6
id: idtoken
with:
script: |
const coredemo = require('@actions/core')
return await coredemo.getIDToken()
result-encoding: string

- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_SKY_0ACD4AD03 }}
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/AssetStore/asset-store-ui" # App source code path
api_location: "" # Api source code path - optional
# output_location: "app" # Built app content directory - optional
github_id_token: ${{ steps.idtoken.outputs.result }}
app_build_command: "CI=false npm run build"
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
action: "close"
16 changes: 16 additions & 0 deletions .github/workflows/publish-asset-store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Asset Store _ Temp

on:
push:
branches:
- test
pull_request:
branches:
- test

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Echo message
run: echo "Hello from the test branch 👋"
2 changes: 1 addition & 1 deletion .github/workflows/publish-core.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish NuGet Package
name: Publish Core

on:
push:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Docs

on:
push:
branches:
- test
pull_request:
branches:
- test

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Echo message
run: echo "Hello from the test branch 👋"
16 changes: 16 additions & 0 deletions .github/workflows/publish-launcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Launcher

on:
push:
branches:
- test
pull_request:
branches:
- test

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Echo message
run: echo "Hello from the test branch 👋"
16 changes: 16 additions & 0 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Web

on:
push:
branches:
- test
pull_request:
branches:
- test

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: Echo message
run: echo "Hello from the test branch 👋"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,5 @@ __pycache__/

# Registry file for setting the .sharpengine file type
/Editor/shortcut.reg

.env
36 changes: 0 additions & 36 deletions Asset Store/AssetStore.Database/Models/Asset.cs

This file was deleted.

14 changes: 0 additions & 14 deletions Asset Store/AssetStore.Database/Models/Comment.cs

This file was deleted.

112 changes: 0 additions & 112 deletions Asset Store/AssetStore/Controllers/AssetController.cs

This file was deleted.

30 changes: 0 additions & 30 deletions Asset Store/AssetStore/Controllers/CommentController.cs

This file was deleted.

Loading