rofi-edit/.github/workflows/release.yaml

40 lines
1,018 B
YAML
Raw Normal View History

2023-12-08 21:12:52 +01:00
name: Release
on:
push:
tags:
- '*'
env:
2023-12-09 14:51:18 +01:00
binary: rofi-edit
2023-12-08 21:12:52 +01:00
jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/get-tag@v2.1.2
id: get_version
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-linux-gnu
- name: Build
run: |
cargo build --release --target x86_64-unknown-linux-gnu
- name: Upload binaries to artifacts
uses: actions/upload-artifact@v3
with:
2023-12-09 14:51:18 +01:00
path: target/x86_64-unknown-linux-gnu/release/${{ env.binary }}.so
name: ${{ env.binary }}.so
2023-12-08 21:12:52 +01:00
retention-days: 1
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
2023-12-09 14:51:18 +01:00
file: ${{ env.binary }}.so
asset_name: ${{ env.binary }}-linux-${{ steps.get_version.outputs.tag }}.so
2023-12-08 21:12:52 +01:00
tag: ${{ github.ref }}
overwrite: true