Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

forgot lockfile 💀 #7

forgot lockfile 💀

forgot lockfile 💀 #7

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: netchat-server
asset_name: netchat-server-linux-amd64
- os: windows-latest
artifact_name: netchat-server.exe
asset_name: netchat-server-windows-amd64.exe
- os: macos-latest
artifact_name: netchat-server
asset_name: netchat-server-macos-amd64
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}