Skip to content

Commit 087e6ff

Browse files
committed
perf: optimize assets and CI workflow
- Convert dotnet GIFs to WebM/MP4 (48MB → 4.4MB, 91% reduction) - Add yarn caching and concurrency to deploy workflow - Add job timeout and single-commit deploy option
1 parent 391c938 commit 087e6ff

File tree

8 files changed

+38
-21
lines changed

8 files changed

+38
-21
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,45 @@ permissions:
44
contents: write
55
pages: write
66
id-token: write
7-
7+
88
on:
99
push:
10-
branches:
11-
- master
10+
branches:
11+
- master
12+
13+
# Prevent multiple deployments from running simultaneously
14+
concurrency:
15+
group: pages-deploy-${{ github.ref }}
16+
cancel-in-progress: true
1217

13-
jobs:
14-
publish:
18+
jobs:
19+
publish:
1520
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
1623
steps:
1724
- name: Checkout
18-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
1926
with:
20-
persist-credentials: false
21-
27+
persist-credentials: false
28+
2229
- name: Setup Node.js
23-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
2431
with:
25-
# choose node.js version to use
2632
node-version: '22'
33+
cache: 'yarn'
34+
35+
- name: Install Dependencies
36+
run: yarn install --non-interactive --frozen-lockfile
2737

28-
- name: Install and Build 🔧 #
29-
run: |
30-
yarn install --non-interactive --frozen-lockfile
31-
yarn docs:build
38+
- name: Build Site
39+
run: yarn docs:build
3240

3341
- name: Deploy 🚀
34-
uses: JamesIves/github-pages-deploy-action@3.7.1
42+
uses: JamesIves/github-pages-deploy-action@v4
3543
with:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
BRANCH: gh-pages # The branch the action should deploy to.
38-
FOLDER: docs/.vuepress/dist # The folder the action should deploy.
39-
CLEAN: true # Automatically remove deleted files from the deploy branch
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
branch: gh-pages
46+
folder: docs/.vuepress/dist
47+
clean: true
48+
single-commit: true
-18.2 MB
Binary file not shown.
1.59 MB
Binary file not shown.
633 KB
Binary file not shown.
-28.2 MB
Binary file not shown.
1.4 MB
Binary file not shown.
697 KB
Binary file not shown.

docs/els-for-runtimes/dotnet/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ Replace `$USERNAME` and `$PASSWORD` with the credentials provided by [sales@tuxc
278278
:::
279279
* A dialog window will appear. Click **Uninstall**. It should take a few minutes. When the process is finished, close the window.
280280

281-
![image](/images/dotnet-uninstall-settings.gif)
281+
<video autoplay loop muted playsinline style="max-width: 100%; border-radius: 8px;">
282+
<source src="/images/dotnet-uninstall-settings.webm" type="video/webm">
283+
<source src="/images/dotnet-uninstall-settings.mp4" type="video/mp4">
284+
Your browser does not support the video tag.
285+
</video>
282286

283287
### Uninstall via Control Panel
284288

@@ -290,7 +294,11 @@ Replace `$USERNAME` and `$PASSWORD` with the credentials provided by [sales@tuxc
290294
:::
291295
* A dialog window will appear. Click **Uninstall**. It should take a few minutes. When the process is finished, close the window.
292296

293-
![image](/images/dotnet-uninstall-controlpanel.gif)
297+
<video autoplay loop muted playsinline style="max-width: 100%; border-radius: 8px;">
298+
<source src="/images/dotnet-uninstall-controlpanel.webm" type="video/webm">
299+
<source src="/images/dotnet-uninstall-controlpanel.mp4" type="video/mp4">
300+
Your browser does not support the video tag.
301+
</video>
294302

295303
### Remove Remaining Files
296304

0 commit comments

Comments
 (0)