diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml new file mode 100644 index 0000000..5630b44 --- /dev/null +++ b/.github/workflows/release-binary.yml @@ -0,0 +1,23 @@ +name: Release binary + +on: + push: + tags: + - v* + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --release + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: target/release/photofinish diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 715af40..a180d69 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,8 +20,3 @@ jobs: run: cargo build --release - name: Run tests run: cargo test --verbose - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: target/release/photofinish