Skip to content

Commit

Permalink
feat: add release using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannfleurydev committed Sep 1, 2019
1 parent 275bdc4 commit f9ecc35
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose

- name: Release Linux binary
uses: meeDamian/github-release@1.0
if: startsWith(github.ref, 'refs/tags/')
with:
files: gitweb:target/release/gitweb
token: ${{ secrets.GITHUB_TOKEN }}

build_windows:
name: Build Windows

Expand All @@ -23,6 +29,13 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Release Windows binary
uses: meeDamian/github-release@1.0
if: startsWith(github.ref, 'refs/tags/')
with:
files: gitweb.exe:target/release/gitweb.exe
token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gitweb"
version = "0.1.8"
version = "0.1.9"
authors = ["Yoann Fleury <yoann.fleury@yahoo.com>"]
edition = "2018"
description = "Open the current remote repository in your browser"
Expand Down

0 comments on commit f9ecc35

Please sign in to comment.