From 4395b58d0959e818749a9c82aad6c5fe392e89f2 Mon Sep 17 00:00:00 2001 From: Adam Hlavacek Date: Sat, 27 Jul 2024 11:10:00 +0200 Subject: [PATCH] chore: autodeploy --- .github/workflows/publish-repo.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish-repo.yaml diff --git a/.github/workflows/publish-repo.yaml b/.github/workflows/publish-repo.yaml new file mode 100644 index 0000000..07f02a5 --- /dev/null +++ b/.github/workflows/publish-repo.yaml @@ -0,0 +1,25 @@ +name: publish-repo +on: + push: + branches: + - 'master' + - 'main' + - 'prod' + +jobs: + deploy-prod: + runs-on: ubuntu-latest + env: + REPO_DEPLOY_SSH_KEY: ${{ secrets.REPO_DEPLOY_SSH_KEY }} + steps: + - run: mkdir src + - uses: actions/checkout@v2 + with: + fetch-depth: 100 + path: 'src' + - name: run deploy + shell: bash + run: | + cd src && + git clone https://github.com/QRGameStudio/util-action-build.git && + bash util-action-build/build.sh