Files
labca/.github/workflows/release.yml
2023-09-20 19:26:33 +02:00

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.1
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 }}