Skip to content

Commit

Permalink
Build & release on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
x0f5c3 authored Oct 9, 2020
1 parent 9e4678a commit 330b8c9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build, bump tag version and release

on:
push:
branches:
- master

jobs:
release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: cargo build --release --locked
- name: Bump version and push tag/create release point
uses: anothrNick/github-tag-action@1.17.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
id: bump_version
- name: Upload binary to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/alemanes
asset_name: alemanes-linux-amd64
tag: ${{ steps.bump_version.outputs.new_tag }}
overwrite: true

0 comments on commit 330b8c9

Please sign in to comment.