Skip to content

Commit

Permalink
ci: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Feb 2, 2020
1 parent 5870457 commit e9ce00f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions utils/upload-artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit e9ce00f

Please sign in to comment.