Create environments #4

Merged
TopchetoEU merged 14 commits from TopchetoEU/environments into master 2023-09-09 15:55:49 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 3824d11c97 - Show all commits

View File

@ -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:

View File

@ -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);