summaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
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 }}