From 50f06df14b0b246e2c02d233d8810e0af9d95958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Fri, 18 Aug 2023 00:05:24 +0200 Subject: [PATCH] Add release workflow --- .github/workflows/bsd.yml | 2 +- .github/workflows/{musl.yml => release.yml} | 21 +++++++++++---------- .reuse/dep5 | 12 +++--------- 3 files changed, 15 insertions(+), 20 deletions(-) rename .github/workflows/{musl.yml => release.yml} (73%) diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 2fe59be..675b497 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -1,4 +1,4 @@ -# Copyright 2022 Timo Röhling +# Copyright 2023 Timo Röhling # SPDX-License-Identifier: FSFAP # # Copying and distribution of this file, with or without modification, are diff --git a/.github/workflows/musl.yml b/.github/workflows/release.yml similarity index 73% rename from .github/workflows/musl.yml rename to .github/workflows/release.yml index 96df0b7..2b0d55a 100644 --- a/.github/workflows/musl.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,19 @@ -# Copyright 2022 Timo Röhling +# Copyright 2023 Timo Röhling # SPDX-License-Identifier: FSFAP # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice and # this notice are preserved. This file is offered as-is, without any warranty. # -name: Build statically linked PostSRSd +name: Create Github release on: push: - branches: - - main + tags: + - "2.*" +permissions: + contents: write jobs: - build: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -30,9 +32,8 @@ jobs: cd _build make install DESTDIR=$PWD/_install - name: Create TAR - run: tar -C_build/_install -cvf postsrsd_static.tar ./ - - name: Upload artifact - uses: actions/upload-artifact@v3 + run: tar -C_build/_install -cvzf postsrsd-x86_64-musl.tar.gz ./ + - name: Create release + uses: softprops/action-gh-release@v1 with: - name: prebuilt - path: postsrsd_static.tar + files: postsrsd-x86_64-musl.tar.gz diff --git a/.reuse/dep5 b/.reuse/dep5 index ee9bf63..6ba29fd 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -10,19 +10,13 @@ License: GPL-3.0-only Files: .clang-format .cmake-format.json .pre-commit-config.yaml - data/postsrsd.service.in - data/postsrsd.conf.in - data/sysusers.conf.in + data/* doc/postsrsd.conf Copyright: 2012-2023, Timo Röhling License: FSFUL -Files: cmake/FindCheck.cmake - cmake/FindConfuse.cmake - cmake/FindHiredis.cmake - cmake/FindLibMilter.cmake - cmake/Findsqlite3.cmake - cmake/utils.cmake +Files: .github/* + cmake/* Copyright: 2022-2023, Timo Röhling License: FSFAP