Add a deployment job
This commit is contained in:
parent
c97f1fc87c
commit
6ca45548e0
25
.gitea/workflows/deploy.yaml
Normal file
25
.gitea/workflows/deploy.yaml
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user