mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-12 19:10:21 +03:00
Beta more carefull while renaming files and update artifact names
This commit is contained in:
parent
3711abb3db
commit
56ef6ac502
2 changed files with 9 additions and 7 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -147,7 +147,7 @@ jobs:
|
||||||
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
||||||
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
||||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEarm64=inav-configurator_darwin_arm64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEarm64=inav-configurator_MacOS_arm64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
@ -196,7 +196,7 @@ jobs:
|
||||||
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
||||||
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
||||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEx64=inav-configurator_darwin_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEx64=inav-configurator_MacOS_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
@ -248,7 +248,7 @@ jobs:
|
||||||
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
||||||
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
||||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEx64=inav-configurator_win32_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEx64=inav-configurator_Windows64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
@ -302,7 +302,7 @@ jobs:
|
||||||
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
VERSION=$(grep version package.json | sed 's/.*"\([0-9][0-9]*.[0-9]*.[0-9]*\)".*/\1/g')
|
||||||
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
||||||
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "BUILD_NAMEia32=inav-configurator_win32_ia32_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
echo "BUILD_NAMEia32=inav-configurator_Windows32_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -11,6 +11,8 @@ module.exports = {
|
||||||
"^(\/support$)",
|
"^(\/support$)",
|
||||||
".gitattributes",
|
".gitattributes",
|
||||||
".gitignore",
|
".gitignore",
|
||||||
|
".github",
|
||||||
|
".git",
|
||||||
"3D_model_creation.md",
|
"3D_model_creation.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"MAPPROXY.md",
|
"MAPPROXY.md",
|
||||||
|
@ -27,9 +29,9 @@ module.exports = {
|
||||||
result.artifacts.forEach(artifact => {
|
result.artifacts.forEach(artifact => {
|
||||||
var artifactStr = artifact.toString();
|
var artifactStr = artifact.toString();
|
||||||
var newPath = path.join(path.dirname(artifactStr), baseName + path.extname(artifactStr));
|
var newPath = path.join(path.dirname(artifactStr), baseName + path.extname(artifactStr));
|
||||||
newPath = newPath.replace('win32_ia32', 'Win32');
|
newPath = newPath.replace('Configurator_win32_ia32', 'Configurator_Win32');
|
||||||
newPath = newPath.replace('win32_x64', 'Win64');
|
newPath = newPath.replace('Configurator_win32_x64', 'Configurator_Win64');
|
||||||
newPath = newPath.replace('darwin', 'MacOS');
|
newPath = newPath.replace('Configurator_darwin', 'Configurator_MacOS');
|
||||||
fs.renameSync(artifactStr, newPath);
|
fs.renameSync(artifactStr, newPath);
|
||||||
console.log('Artifact: ' + newPath);
|
console.log('Artifact: ' + newPath);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue