Skip to content

Commit

Permalink
fix: circle production asset release
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Jun 20, 2019
1 parent c50d34b commit ffe49eb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 21 deletions.
33 changes: 26 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ jobs:
- run: ./node_modules/.bin/codecov
- save_cache: *save-deps-cache

release:
<<: *defaults
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache: *restore-deps-cache
- run: ls dist
- run: npm install
- run: npm install semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/commit-analyzer @semantic-release/release-notes-generator @qiwi/semantic-release-gh-pages-plugin
- run: ./node_modules/.bin/semantic-release --dry-run
- save_cache: *save-deps-cache

windowsbuild:
<<: *defaults
docker:
Expand All @@ -51,7 +64,11 @@ jobs:
command: |
echo 'export APP_VERSION_GIT_TAG=$(npm run --silent version)' >> $BASH_ENV # Redirect MY_ENV_VAR into $BASH_ENV
- run: npm install
- run: npm run electron:build
- run: npm run electron:build -- --win --ia32
- persist_to_workspace:
root: ~/project/dist/
paths:
- dist/*

macbuild:
<<: *defaults
Expand All @@ -65,6 +82,10 @@ jobs:
echo 'export APP_VERSION_GIT_TAG=$(npm run --silent version)' >> $BASH_ENV # Redirect MY_ENV_VAR into $BASH_ENV
- run: npm install
- run: npm run electron:build
- persist_to_workspace:
root: ~/project/dist/
paths:
- dist/*

linuxbuild:
<<: *defaults
Expand All @@ -78,12 +99,10 @@ jobs:
echo 'export APP_VERSION_GIT_TAG=$(npm run --silent version)' >> $BASH_ENV # Redirect MY_ENV_VAR into $BASH_ENV
- run: npm install
- run: npm run electron:build

release:
docker:
- image: circleci/node:10
steps:
- run: echo "hello world"
- persist_to_workspace:
root: ~/project/dist
paths:
- dist/*

workflows:
version: 2
Expand Down
36 changes: 22 additions & 14 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,34 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/git",
"@semantic-release/npm"
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/electron-pristine-linux-x64-0.0.0-development.tar.gz",
"label": "Electron Pristine Linux distribution"
},
{
"path": "dist/mac/*.dmg",
"label": "Electron Pristine Mac distribution"
},
{
"path": "dist/*.exe",
"label": "Electron Pristine Windows distribution"
}
]
}
],
"@semantic-release/git"
],
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github",
"@qiwi/semantic-release-gh-pages-plugin"
"@semantic-release/github"
],
"publish": [
"@semantic-release/github",
{
"path": "@qiwi/semantic-release-gh-pages-plugin",
"msg": "github pages release",
"src": "docs/",
"branch": "gh-pages"
},
"@semantic-release/npm"
"@semantic-release/github"
],
"success": [
"@semantic-release/github"
Expand Down

0 comments on commit ffe49eb

Please sign in to comment.