Fix various missing workflow parts

This commit is contained in:
Wilson Lin 2020-06-19 18:27:46 +10:00
parent 3779931552
commit b7c355bd57
4 changed files with 11 additions and 3 deletions

View File

@ -26,6 +26,14 @@ jobs:
toolchain: 1.39.0
profile: minimal
default: true
- name: Build generated code
working-directory: ./gen
run: |
npm install
node node_modules/ts-node/dist/bin.js attrs.ts
node node_modules/ts-node/dist/bin.js dfa.ts
node node_modules/ts-node/dist/bin.js entities.ts
node node_modules/ts-node/dist/bin.js patterns.ts
- name: Set up Node.js module
working-directory: ./nodejs
run: npm install

View File

@ -100,6 +100,6 @@ jobs:
</profiles>
</settings>
EOF
if [[ "$GITHUB_REF" != refs/tags/v* ]]; then
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
mvn clean deploy
fi

View File

@ -6,5 +6,5 @@ authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018"
[dependencies]
hyperbuild = { path = ".." }
hyperbuild = "0.1.2"
structopt = "0.3.5"

View File

@ -74,7 +74,7 @@ for (const f of ['python/setup.py']) {
replaceInFile(f, /^(\s*version=)"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`);
}
for (const f of ['README.md', 'nodejs/native/Cargo.toml', 'java/Cargo.toml', 'python/Cargo.toml', 'ruby/Cargo.toml']) {
for (const f of ['README.md', 'cli/Cargo.toml', 'nodejs/native/Cargo.toml', 'java/Cargo.toml', 'python/Cargo.toml', 'ruby/Cargo.toml']) {
replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `hyperbuild = "${NEW_VERSION}"`);
}