-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (35 loc) · 990 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build Ghostty
on:
workflow_dispatch:
inputs:
release_version:
description: If empty, rest with build artifact. If nonempty, release that version.
type: string
required: false
permissions:
contents: write
jobs:
build-ghostty:
name: Build Ghostty
runs-on: ubuntu-latest
container:
image: ubuntu:24.10
steps:
- name: Checkout ghostty-ubuntu
uses: actions/checkout@v4
- name: Build Ghostty
run: ./build-ghostty.sh
- name: Upload Artifact
if: inputs.release_version == ''
uses: actions/upload-artifact@v4
with:
name: package
path: ghostty_*.deb
- name: Create Release
if: inputs.release_version != ''
uses: softprops/action-gh-release@v2
with:
draft: true
files: ghostty_*.deb
tag_name: ${{ inputs.release_version }}
fail_on_unmatched_files: true