mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Create Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-standalone:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
GO_VERSION:
|
|
- 1.21.4
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.GO_VERSION }}
|
|
|
|
- name: APT Install
|
|
id: aptInstall
|
|
run: sudo apt-get -y install build-essential debhelper fakeroot
|
|
|
|
- name: Build Debian package
|
|
id: make_debian
|
|
run: |
|
|
make debian
|
|
|
|
- name: Create changelog text
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.ACTION_PAT }}
|
|
|
|
- name: Create release
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: "release/*"
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
draft: true
|
|
token: ${{ secrets.ACTION_PAT }}
|