Skip to content

Commit

Permalink
Add release
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Jul 30, 2023
1 parent 20b5b9f commit 12d693d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
push:
tags:
- "*.*.*"

jobs:
publish:
name: "Publish for ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
linux,
windows,
macos
]

include:
- name: linux
os: ubuntu-latest
artifact_name: target/release/strava-rs
asset_name: strava-rs-linux
- name: windows
os: windows-latest
artifact_name: target/release/strava-rs.exe
asset_name: strava-rs-windows
- name: macos
os: macos-latest
artifact_name: target/release/strava-rs
asset_name: strava-rs-macos

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --locked

- name: Rename
run: mv ${{ matrix.artifact_name }} ${{ matrix.asset_name }}

- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.asset_name }}

0 comments on commit 12d693d

Please sign in to comment.