From 552f8aa2e7cccf246c5803bcda63cf185a5677e7 Mon Sep 17 00:00:00 2001 From: Herklos Date: Mon, 2 Oct 2023 08:53:23 +0200 Subject: [PATCH] [CI] Add stable upload --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45bd390d3..747dda99a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -155,6 +155,15 @@ jobs: cd OctoBot python start.py tentacles -m "../metadata.yaml" -d "../new_tentacles" -p "../../any_platform.zip" -upe ${{ secrets.TENTACLES_OFFICIAL_PATH }}/packages/full/${{ secrets.TENTACLES_REPOSITORY_NAME }}/ + - name: Publish stable tentacles + if: github.ref == 'refs/heads/master' + env: + S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} + run: | + sed -i "s/VERSION_PLACEHOLDER/stable/g" metadata.yaml + cd OctoBot + python start.py tentacles -m "../metadata.yaml" -d "../new_tentacles" -p "../../any_platform.zip" -upe ${{ secrets.TENTACLES_OFFICIAL_PATH }}/packages/full/${{ secrets.TENTACLES_REPOSITORY_NAME }}/ + - name: Publish cleaned branch tentacles if: startsWith(github.ref, 'refs/tags') != true && github.ref != 'refs/heads/master' env: