Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
weirane committed Aug 27, 2021
1 parent ec81f8c commit b07674c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
# schedule:
# - cron: '0 0 1 * *' # midnight UTC every month

push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
name: Release binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Build release binary
run: cargo build --release --locked --verbose

- name: Strip release binary
run: strip target/release/dosnap

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/dosnap
asset_name: dosnap
tag: ${{ github.ref }}
overwrite: true

0 comments on commit b07674c

Please sign in to comment.