Skip to content

Build yazi for Debian #3

Build yazi for Debian

Build yazi for Debian #3

Workflow file for this run

name: Build yazi for Debian
on:
workflow_dispatch:
inputs:
yazi_version:
description: The version of yazi to build.
type: string
required: true
build_version:
description: The build version.
type: string
required: true
permissions:
contents: write
jobs:
build-yazi:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout yazi-debian
uses: actions/checkout@v4
- name: Build yazi
run: ./build.sh ${{ inputs.yazi_version }} ${{ inputs.build_version }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: yazi_*.deb
release-yazi:
name: (Draft-)Release yazi for Debian
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build-yazi
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
name: artifact
- name: Publish Release Draft
uses: softprops/action-gh-release@v2
with:
draft: true
files: yazi_*.deb
name: ${{ inputs.yazi_version }}+${{ inputs.build_version }}
tag_name: ${{ env.RELEASE_TAG }}
fail_on_unmatched_files: true