diff --git a/.github/scripts/commit-repo.sh b/.github/scripts/commit-repo.sh index 0900ebe..754611e 100755 --- a/.github/scripts/commit-repo.sh +++ b/.github/scripts/commit-repo.sh @@ -1,7 +1,7 @@ #!/bin/bash -cp master/server/build/Tachidesk-*.jar repo -cd repo +cp master/server/build/Tachidesk-*.jar preview +cd preview new_jar_build=$(ls *.jar| tail -1) echo "last jar build file name: $new_jar_build" @@ -13,7 +13,7 @@ git config --global user.name "github-actions[bot]" git status if [ -n "$(git status --porcelain)" ]; then git add . - git commit -m "Update repo" + git commit -m "Update preview repository" git push else echo "No changes to commit" diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 58536c8..153e1ce 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -70,14 +70,12 @@ jobs: dependencies-cache-enabled: true configuration-cache-enabled: true - - name: Checkout repo branch - if: github.repository == 'tachiyomiorg/tachiyomi-extensions' + - name: Checkout preview branch uses: actions/checkout@v2 with: - ref: repo - path: repo + ref: preview + path: preview - - name: Deploy repo - if: github.repository == 'tachiyomiorg/tachiyomi-extensions' + - name: Deploy preview run: | ./master/.github/scripts/commit-repo.sh \ No newline at end of file