Add a deployment job
All checks were successful
Build / build (push) Successful in 14s
Deploy / deploy (push) Successful in 4s

This commit is contained in:
Eugen Wissner 2024-07-13 11:54:27 +02:00
parent c97f1fc87c
commit 29434bc41e
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -0,0 +1,22 @@
name: Deploy
on:
push:
tags:
- '**'
jobs:
deploy:
runs-on: buildenv
steps:
- uses: actions/checkout@v4
- name: Archive
run: |
DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk '{ gsub(/^v/, "slack-timedate-"); print $0 }')
ln -s . $DISTRIBUTION
touch $DISTRIBUTION.tar.xz
tar --exclude="${DISTRIBUTION}/${DISTRIBUTION}*" --exclude-vcs -Jcvhf $DISTRIBUTION.tar.xz $DISTRIBUTION
- uses: akkuman/gitea-release-action@v1
with:
files: "*.tar.xz"
token: ${{ secrets.API_KEY }}