mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-10 00:00:36 +00:00
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
name: release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: build
|
|
uses: sassman/rust-deb-builder@v1.57.0
|
|
with:
|
|
target: x86_64-unknown-linux-musl
|
|
- name: package
|
|
run: |
|
|
cd "$GITHUB_WORKSPACE"
|
|
mkdir -p package
|
|
mkdir -p package/target/release
|
|
cp -v tmux-thumbs.sh tmux-thumbs.tmux package/
|
|
cp -v target/x86_64-unknown-linux-musl/release/thumbs package/target/release
|
|
cp -v target/x86_64-unknown-linux-musl/release/tmux-thumbs package/target/release
|
|
tar czvf tmux-thumbs.x86_64-musl.tar.gz package/*
|
|
- name: create_release
|
|
uses: ncipollo/release-action@v1.9.0
|
|
with:
|
|
artifactErrorsFailBuild: true
|
|
artifacts: "tmux-thumbs.x86_64-musl.tar.gz"
|