Files
deduplicator/.github/workflows/build_and_release.yml

45 lines
936 B
YAML

name: Build and release
on:
push:
branches:
- main
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build for Windows
run: |
cargo build --release --target x86_64-pc-windows-gnu
- name: Build for Linux
run: |
cargo build --release --target x86_64-unknown-linux-gnu
- name: Build for MacOS
run: |
cargo build --release --target x86_64-apple-darwin
- name: Create release
uses: actions/create-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false