From e9ce00fdf6562c1437dd1c0926fcd5966a469a65 Mon Sep 17 00:00:00 2001 From: manusa Date: Sun, 2 Feb 2020 07:55:04 +0100 Subject: [PATCH] ci: fix typos --- .github/workflows/publish.yml | 4 ++-- utils/upload-artifact.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d27b4e9f..9914fb5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -98,9 +98,9 @@ jobs: - name: Install run: npm install - name: Change Package version - run: ./utils/version-from-tag.js + run: node .\utils\version-from-tag.js - name: Prepare Electron Builder - run: ./utils/prepare-electron-builder.js + run: node .\utils\prepare-electron-builder.js - name: Build Windows run: npm run build:win - name: Upload zip diff --git a/utils/upload-artifact.js b/utils/upload-artifact.js index 4033fb6a..e46c7631 100755 --- a/utils/upload-artifact.js +++ b/utils/upload-artifact.js @@ -17,11 +17,11 @@ const uploadArtifact = () => { const releaseId = childProcess.execSync(`curl https://api.github.com/repos/manusa/electronim/releases/tags/v${version} | jq -r ".id"`) .toString('utf8').replace(/\\r?\\n/g, '').trim(); console.log(`Uploading ${artifactFileName} with version ${version} to release ${releaseId}`); - const assetId = childProcess.execSync(`curl \\ + const assetId = childProcess.execSync(`curl \\ -H "Authorization: token $GITHUB_TOKEN" \\ -H "Content-Type: application/tar+gzip" \\ --data-binary "@dist/${artifactFileName}" \\ - "https://uploads.github.com/repos/manusa/electronim/releases/${releaseId}/assets?name=${artifactFileName}" + "https://uploads.github.com/repos/manusa/electronim/releases/${releaseId}/assets?name=${artifactFileName}" \\ | jq -r ".id"`) .toString('utf8').replace(/\\r?\\n/g, '').trim(); console.log(`Artifact ${artifactFileName} with version ${version} to release ${releaseId} successfully uploaded as asset ${assetId}`);