slack-timedate/.gitea/workflows/deploy.yaml
Eugen Wissner 29434bc41e
All checks were successful
Build / build (push) Successful in 14s
Deploy / deploy (push) Successful in 4s
Add a deployment job
2024-07-13 11:58:20 +02:00

23 lines
583 B
YAML

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