Add a deployment job
Some checks failed
Build / build (push) Successful in 17s
Deploy / deploy (push) Failing after 30s

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

View File

@ -0,0 +1,25 @@
name: Deploy
on:
push:
tags:
- '**'
jobs:
deploy:
runs-on: buildenv
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: cabal update
- run: cabal build
- 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 }}