-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* work on publishing the web demo * some fixes * link to web demo
- Loading branch information
Showing
6 changed files
with
91 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
on: [push, pull_request] | ||
jobs: | ||
build-demo: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Restore tools | ||
run: dotnet tool restore | ||
- name: Run PublishWeb | ||
run: dotnet cake --target PublishWeb --ref ${{ github.ref }} --buildNum ${{ github.run_number }} | ||
- name: Upload demo artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: Demos.Web/bin/Release/net8.0/publish/wwwroot | ||
name: demo | ||
include-hidden-files: true | ||
if-no-files-found: error | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Restore tools | ||
run: dotnet tool restore | ||
- name: Run Document | ||
run: dotnet cake --target Document --ref ${{ github.ref }} --buildNum ${{ github.run_number }} | ||
- name: Upload docs artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: Docs/_site | ||
name: docs | ||
include-hidden-files: true | ||
if-no-files-found: error | ||
deploy: | ||
needs: [build-demo, build-docs] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download demo artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: demo | ||
path: demo | ||
- name: Download docs artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: docs | ||
path: docs | ||
- name: Combine sites | ||
run: | | ||
mv docs _site | ||
mv demo _site/demo | ||
- name: Upload combined artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: _site | ||
name: site | ||
include-hidden-files: true | ||
if-no-files-found: error | ||
- name: Deploy | ||
if: startsWith(github.ref, 'refs/tags/') | ||
# this is a beautiful way to deploy a website and i will not take any criticism | ||
run: | | ||
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb | ||
mkdir ~/.ssh && echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa | ||
rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' _site/. ellbot@ssh.ellpeck.de:/var/www/MLEM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
"**/MLEM**.csproj" | ||
], | ||
"exclude": [ | ||
"**.FNA.**" | ||
"**.FNA.**", | ||
"**.KNI.**" | ||
] | ||
} | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
href: api/ | ||
- name: Changelog | ||
href: ../CHANGELOG.md | ||
- name: Web Demo | ||
href: demo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters