From 4fbf47d26e3474556b9a5a09912369ea109ca4ef Mon Sep 17 00:00:00 2001 From: Zakarya Date: Wed, 29 Jan 2025 15:52:46 -0800 Subject: [PATCH] Add deployment action --- .gitea/workflows/deploy.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..bc7d755 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,15 @@ +name: Deploy Website +run-name: ${{ gitea.actor }} is deploying the website... +on: + release: + types: [published] + +jobs: + Deploy-Website: + steps: + - name: Download release archive + run: wget "https://git.colormatic.org/ColormaticStudios/Colormatic-Website/releases/download/latest/release.tar.gz" + - name: Clear existing deployment + run: rm -r ${{ secrets.WEBPATH }}/* # Scary + - name: Extract release archive + run: tar -xf release.tar.gz -C ${{ secrets.WEBPATH }}/