Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Feb 23, 2022
1 parent 2910656 commit 8b0d266
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
publish:
name: Release for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: libeww_history_ext.so
asset_name: linux-eww-history-ext-dyn.so
- os: windows-latest
artifact_name: eww_history_ext.dll
asset_name: eww-history-ext.dll
- os: macos-latest
artifact_name: libeww_history_ext.dylib
asset_name: macos-eww-history-ext-dyn.so

steps:
- uses: actions/checkout@v2
- 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 }}

0 comments on commit 8b0d266

Please sign in to comment.