diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-07-13 11:54:27 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-07-13 11:58:20 +0200 |
| commit | 29434bc41e27986e3fcec539590d6cb4a99540b7 (patch) | |
| tree | 1a1c04d9fbe84ce3efcc7b6a0ff61b31adde89c1 | |
| parent | c97f1fc87c949570063b85f958e611251bfbf01f (diff) | |
| download | slack-timedate-29434bc41e27986e3fcec539590d6cb4a99540b7.tar.gz | |
Add a deployment jobv2.1
| -rw-r--r-- | .gitea/workflows/deploy.yaml | 22 |
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 }} |
