Skip to content

chore: Create github actions workflow to build binaries and upload it… #2

chore: Create github actions workflow to build binaries and upload it…

chore: Create github actions workflow to build binaries and upload it… #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*" # Only run on version tags like v1.0.0
permissions:
contents: write
jobs:
build:
name: Build binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build release binary
run: cargo build --release --workspace
- name: Upload binaries as artifacts
uses: actions/upload-artifact@v4
with:
name: null-talk-${{ matrix.os }}
path: |
target/release/null-talk-client*
target/release/null-talk-server*
release:
name: Upload to GitHub Releases
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Upload release assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
artifacts/**/*