Extract awk script into a file
All checks were successful
Build / build (push) Successful in 18s

This commit is contained in:
2026-02-22 13:09:53 +01:00
parent 98856a61d5
commit 4c2210109f
9 changed files with 13 additions and 9 deletions

4
.gitea/deploy.awk Normal file
View File

@@ -0,0 +1,4 @@
{
gsub(/^v/, "slack-timedate-")
print $0
}

View File

@@ -15,7 +15,7 @@ jobs:
shell: ash {0}
run: |
apk -U upgrade
apk add --no-cache git bash cmake build-base pkgconf glibmm-dev dbus-dev
apk add --no-cache git bash cmake build-base pkgconf glibmm2.66-dev dbus-dev
- uses: actions/checkout@v4
- name: Build
run: |

View File

@@ -7,12 +7,12 @@ on:
jobs:
deploy:
runs-on: buildenv
container: buildenv:5
steps:
- uses: actions/checkout@v4
- name: Archive
run: |
DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk '{ gsub(/^v/, "slack-timedate-"); print $0 }')
DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk -f .gitea/deploy.awk)
ln -s . $DISTRIBUTION
touch $DISTRIBUTION.tar.xz
tar --exclude="${DISTRIBUTION}/${DISTRIBUTION}*" --exclude-vcs -Jcvhf $DISTRIBUTION.tar.xz $DISTRIBUTION

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
# Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
# Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
# Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
* Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
* Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
* Copyright (C) 2013-2026 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by