debugging again
This commit is contained in:
parent
7a226c49d3
commit
3824d11c97
2
.github/workflows/tagged-release.yml
vendored
2
.github/workflows/tagged-release.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
repository: 'java-jscript'
|
||||
- name: "Build"
|
||||
run: |
|
||||
cd java-jscript; node ./build.js release ${{ github.ref }}
|
||||
ls -R; cd java-jscript; node ./build.js release ${{ github.ref }}
|
||||
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
|
5
build.js
5
build.js
@ -3,7 +3,10 @@ const fs = require('fs/promises');
|
||||
const pt = require('path');
|
||||
const conf = require('./meta');
|
||||
const { argv } = require('process');
|
||||
conf.version = argv[3].substring(1);
|
||||
conf.version ??= argv[3];
|
||||
|
||||
if (conf.version.startsWith('refs/tags/')) conf.version = conf.version.substring(10);
|
||||
if (conf.version.startsWith('v')) conf.version = conf.version.substring(1);
|
||||
|
||||
async function* find(src, dst, wildcard) {
|
||||
const stat = await fs.stat(src);
|
||||
|
Loading…
Reference in New Issue
Block a user