summaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-07-13 11:54:27 +0200
committerEugen Wissner <belka@caraus.de>2024-07-13 11:58:20 +0200
commit29434bc41e27986e3fcec539590d6cb4a99540b7 (patch)
tree1a1c04d9fbe84ce3efcc7b6a0ff61b31adde89c1 /.gitea/workflows
parentc97f1fc87c949570063b85f958e611251bfbf01f (diff)
downloadslack-timedate-29434bc41e27986e3fcec539590d6cb4a99540b7.tar.gz
Add a deployment jobv2.1
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/deploy.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml
new file mode 100644
index 0000000..dc623bc
--- /dev/null
+++ b/.gitea/workflows/deploy.yaml
@@ -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 }}