Skip to content

Commit

Permalink
added github releases, re-enabled messages to discord on successfull …
Browse files Browse the repository at this point in the history
…deployment
  • Loading branch information
SanjoAndPanjo committed Aug 2, 2020
1 parent 3282268 commit 75523d0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .travis.yml
Expand Up @@ -3,11 +3,15 @@ language: rust
os:
- linux
- osx
- windows

arch:
- amd64
- arm64

services:
- docker

before_install:
- rustup component add rustfmt

Expand All @@ -27,10 +31,19 @@ script:
- cargo test
- cargo fmt -- --check

#after_success:
#- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
#- chmod +x send.sh
#- ./send.sh success $WEBHOOK_URL
# Add in the github release details here
deploy:
provider: releases
api_key: "GITHUB OAUTH TOKEN"
file: "FILE TO UPLOAD"
skip_cleanup: true
on:
tags: true

after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
Expand Down

0 comments on commit 75523d0

Please sign in to comment.