Skip to content

fix: pub.yml

fix: pub.yml #6

Workflow file for this run

name: Publish
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
artifact_name: web_touchpad.exe
asset_name: web_touchpad-windows.exe
- os: macos-latest
artifact_name: web_touchpad
asset_name: web_touchpad-macos
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release
- 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 }}