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