Skip to content

Commit

Permalink
Deploy to GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ohtake committed Sep 5, 2017
1 parent 7e6a3f1 commit 483491a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ _testmain.go
*.test
*.prof

# Builds
/out

# Slack related files
/slack_export
/output
Expand Down
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
language: go
go:
- "1.6.3"
- tip
- "1.9"
script:
- go test -v -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- ./scripts/build.sh
deploy:
provider: releases
skip_cleanup: true
file_glob: true
file: out/*
api_key:
secure: "tENMefHiqrzilopwjz8l9QAcGn1IY3lSWDhANfxYJ6cF5DnlcWj0W2ehYfl834E6L0i5jvnIclwnM0GOLuOng57IxJhsmT0i2Yu+5phcS4BQ5+rWDggEistUFBJbs+jkSIAV1lPjBTOt+/PEEz6N6hoOoEjfzqlYhCv4hQImU16ky3DZZbF9l27tVUmHQc5OOfzyfkWq9NT7fO19uVjslnPnLhawJe+r+C/6r6el6d3nl5YXpxsUPzfeG6V5yIqyY9PxTFIsXBftPR2WvM9ACsVtCElT9q+EmUZsVnr5PCBqq1wWCDG5+ksAJM7u302e1HiBrnzirPANpkqB/Ya2x6irbRjOZozoiNSe/O+hNCseYPCAptjxYuc3rZWXHX1uwH2UcTkCogBYJx0MwluUz3QugZPWfR8ExjCdr6db3jaxiVkPWxZwui8xMT/s/8/Bw6EvTkXpMINS9XweHMbBxxhfB2RZE7koiJFduXwA8tzWADoqdKWL19n2hVDaRy8UCE1LD0nXaTngOj69Fqi7LOMBwPP8C1LwZnDP1BMyEswgNkmPfrMezYaeea24c/xUFPNVf1TcQsCeK+wYClG45IiVS0sWO8Z+I95fR+azctp06DLTuZxI+JdsZi+vUh/uLd6LKZ8CD136mxY/8fJNUazZilSRo20rVsdK0Vl5riU="
on:
tags: true
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ You can convert [exported Slack history json](https://get.slack.help/hc/en-us/ar

See <https://github.com/ohtake/slack2md/blob/example/output/index.md>.

## Requirement

* [Go](https://golang.org/doc/install)

## Usage

1. [Export Slack history](https://my.slack.com/services/export) and wait its completion.
1. Download and extract the zip file into `slack_export` directory.
1. Execute `go build` and you will get `slack2md` executable file.
1. Run `slack2md` and you will get Markdown files at `output` directory.
* You can fetch pre-built binaries from [releases](https://github.com/ohtake/slack2md/releases).
* You can also build binaries using [Go](https://golang.org/doc/install): `go build`.

## Options

`./slack2md -help`
Type `./slack2md -help`.
11 changes: 11 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

mkdir -p out

GOOS=darwin GOARCH=amd64 go build -o out/slack2md.darwin-amd64.out
GOOS=linux GOARCH=amd64 go build -o out/slack2md.linux-amd64.out
GOOS=windows GOARCH=amd64 go build -o out/slack2md.windows-amd64.exe
GOOS=windows GOARCH=386 go build -o out/slack2md.windows-386.exe

0 comments on commit 483491a

Please sign in to comment.