File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,14 +16,27 @@ jobs:
1616 - name : Checkout Code
1717 uses : actions/checkout@v6
1818
19- - name : Set script permissions
20- run : chmod +x ./scripts/inject-version.sh
19+ - name : Install Rust toolchain
20+ uses : dtolnay/rust-toolchain@stable
2121
22- - name : Inject version
22+ - name : Cache cargo registry
23+ uses : actions/cache@v5
24+ with :
25+ path : |
26+ ~/.cargo/registry
27+ ~/.cargo/git
28+ target
29+ key : ${{ runner.os }}-cargo-publish-definitions-${{ hashFiles('**/Cargo.lock') }}
30+ restore-keys : |
31+ ${{ runner.os }}-cargo-
32+
33+ - name : Generate published definitions
2334 run : |
2435 VERSION="${{ github.ref_name }}"
2536 VERSION="${VERSION#*-}" # removes everything up to the first dash
26- ./scripts/inject-version.sh "$VERSION"
37+ cargo run -- publish --version "$VERSION" --path definitions --out out
38+ rm -rf definitions
39+ mv out definitions
2740
2841 - name : Archive definitions folder
2942 run : |
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ reader/ts/build
77bundles
88reader /** /* .js
99* .d.ts
10- ** /dist
10+ ** /dist
11+ /out
You can’t perform that action at this time.
0 commit comments