Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,6 @@ jobs:
name: Deploy and alias Hyperion
command: npx now-cd --alias "alpha=hyperion.alpha.spectrum.chat" --team spaceprogram

deploy_desktop:
<<: *js_defaults
docker:
- image: circleci/node:8
steps:
- attach_workspace:
at: ~/spectrum
- run:
name: Build and release desktop app
command: yarn run release:desktop

# Run eslint, flow etc.
test_static_js:
<<: *js_defaults
Expand Down Expand Up @@ -225,10 +214,3 @@ workflows:
filters:
branches:
only: alpha
- deploy_desktop:
requires:
- test_static_js
- test_web
filters:
branches:
only: alpha
20 changes: 8 additions & 12 deletions desktop/deployment.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Desktop App Deployment

We have semi-continuous deployment set up for the desktop app. Here's how it works:
1. Packages the desktop app for all operating systems and upload them to GitHub as a draft release with the following command:

## Automatic
```
GH_TOKEN=xyz123 yarn run release:desktop
```

1. We merge the latest changes from `alpha` to `production`
2. This prompts a CircleCI build, which packages the desktop app for all operating systems and uploads them to GitHub as a draft release. That looks something like this:
> Note: GH_TOKEN has to be a valid GitHub personal token. You can get one from your user settings.
> Note for employees: You will find the company GitHub token in 1Password under the entry for "Spectrum GitHub Bot"

2. You'll then have a draft release on GitHub that looks something like this:

![screen shot 2018-05-30 at 15 42 22](https://user-images.githubusercontent.com/7525670/40724411-4b5fe9ec-6421-11e8-8e4b-d0df96b46f72.png)

Expand All @@ -19,11 +23,3 @@ We have semi-continuous deployment set up for the desktop app. Here's how it wor

As soon as it's published, the app will prompt existing users to upgrade to the newest version and download and install it for them.

## Manual

You can also do a manual deploy of the desktop apps. You will need to get a GitHub token from your personal GitHub settings, then run the following command:

```
GH_TOKEN=asdf123 yarn run release:desktop
```