41 lines
1000 B
YAML
41 lines
1000 B
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: codeberg-small
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 'stable'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y chafa libglib2.0-dev
|
|
|
|
- name: Build binary
|
|
run: make build
|
|
|
|
- name: Test binary
|
|
run: ./gogofetch --version
|
|
|
|
- name: Package release artifact
|
|
run: |
|
|
tar -czvf gogofetch-${{ github.ref_name }}-linux-amd64.tar.gz gogofetch Makefile logos/
|
|
|
|
- name: Create Release and Upload Asset
|
|
uses: https://codeberg.org/actions/release-action@v1
|
|
with:
|
|
files: |
|
|
gogofetch-${{ github.ref_name }}-linux-amd64.tar.gz
|
|
title: "Release ${{ github.ref_name }}"
|
|
note: "Automated binary release for Arch Linux AUR" |