Skip to content

Commit 939677a

Browse files
committed
make use of gha:example
1 parent 13abb7b commit 939677a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/actions/build-assetbundles.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Build Assetbundles
22

33
```{gha:action}
4-
---
5-
path: .github/actions/build-assetbundles
6-
---
4+
:path: .github/actions/build-assetbundles
75
```
86

97
## Usage
@@ -14,8 +12,8 @@ The Unity editor requires a login to function, even with the free edition. You w
1412
### Using a Unity project
1513
If your repo has a complete Unity project already checked in, you can point the action at it and have it build all your defined asset bundles.
1614

17-
```yaml
18-
- uses: github.com/KSPModdingLibs/KSPBuildTools/.github/actions/build-assetbundles@main
15+
```{gha:example}
16+
- uses: ./.github/actions/build-assetbundles
1917
with:
2018
project-dir: 'MyUnityProject'
2119
env:
@@ -26,8 +24,8 @@ If your repo has a complete Unity project already checked in, you can point the
2624
### Using a list of assets
2725
Alternatively, you can give the action an assetbundle name and a list of assets to compile, and it will create a temporary project in order to compile them
2826

29-
```yaml
30-
- uses: github.com/KSPModdingLibs/KSPBuildTools/.github/actions/build-assetbundles@main
27+
```{gha:example}
28+
- uses: ./.github/actions/build-assetbundles
3129
with:
3230
assetbundle-name: mybundle.shab
3331
asset-files: 'MyAssets/*.shader MyAssets/*.cginc'

0 commit comments

Comments
 (0)