Skip to content

Commit 2b9013f

Browse files
committed
feat: adjusted publishing process to new cli publish task
1 parent 08b02aa commit 2b9013f

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,27 @@ jobs:
1616
- name: Checkout Code
1717
uses: actions/checkout@v7
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: |

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ reader/ts/build
77
bundles
88
reader/**/*.js
99
*.d.ts
10-
**/dist
10+
**/dist
11+
/out

0 commit comments

Comments
 (0)