From a7447e709e300588c3089607b7ae89ba943c33c4 Mon Sep 17 00:00:00 2001 From: subochev Date: Thu, 13 Aug 2026 11:41:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=87=D0=B8=D0=B5=20=D0=BF=D0=BE=D1=82=D0=BE=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=83=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B8=20=D1=82=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/publish-docs-andrey.yaml | 43 +++++++++++++++++++++++ .gitea/workflows/test.yaml | 17 +++++++++ 2 files changed, 60 insertions(+) create mode 100644 .gitea/workflows/publish-docs-andrey.yaml create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/publish-docs-andrey.yaml b/.gitea/workflows/publish-docs-andrey.yaml new file mode 100644 index 0000000..d2e4a93 --- /dev/null +++ b/.gitea/workflows/publish-docs-andrey.yaml @@ -0,0 +1,43 @@ +name: 'Publish Documents by Andrey' +on: + workflow_dispatch: + inputs: + branch: + description: 'Ветка' + required: true + type: string + default: master +jobs: + deploy-dev: + name: 'Deploy to dev' + runs-on: ubuntu-latest + steps: + - name: 'Print Info' + run: | + echo "Branch: ${{ github.event.inputs.branch }}" + - name: Cloning Documents + uses: https://git.binom.pw/otp/devops/clone@main + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + repository: 'devspc/docs' + branch: ${{ github.event.inputs.branch }} + target: './docs' + - name: Setup Jvm + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: "adopt" + - name: Downloading generator + run: | + curl http://nexus.xx/repository/jars/confluence-publisher.jar > confluence-publisher.jar + - name: Publishing Documents + run: | + java -jar confluence-publisher.jar --confluence-url http://192.168.76.136 --token '${{ secrets.CONFLUENCE_TOKEN_ANDREY }}' -f '**/*.md' -r './docs' + - name: 'Cleanup' + if: always() + shell: bash + run: | + echo 'Cleaning...' + rm -rf ~/.gradle/init.gradle.kts + rm -rf ~/.ssh/config + rm -rf ~/.ssh/my_key \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..85f97a8 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,17 @@ +name: 'Test' +on: + workflow_dispatch: + inputs: + branch: + description: 'Ветка' + required: true + type: string + default: master +jobs: + deploy-dev: + name: 'Deploy to dev' + runs-on: ubuntu-latest + steps: + - name: Publishing Documents + run: | + echo '${{ secrets.CONFLUENCE_TOKEN }}' \ No newline at end of file