This commit is contained in:
2026-05-07 00:57:37 +03:00
parent 6c4e20e3b2
commit 2b73267a02
+14 -3
View File
@@ -15,12 +15,20 @@ jobs:
- name: 'Print Info' - name: 'Print Info'
run: | run: |
echo "Branch: ${{ github.event.inputs.branch }}" echo "Branch: ${{ github.event.inputs.branch }}"
- name: Cloning - name: Cloning Documents
uses: https://git.binom.pw/otp/devops/clone@main uses: https://git.binom.pw/otp/devops/clone@main
with: with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
repository: 'devspc/docs' repository: 'devspc/docs'
branch: ${{ github.event.inputs.branch }} branch: ${{ github.event.inputs.branch }}
target: './docs'
- name: Cloning MQ
uses: https://git.binom.pw/otp/devops/clone@main
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
repository: 'devspc/mq-starter'
branch: ${{ github.event.inputs.branch }}
target: './mq'
- name: Setup Jvm - name: Setup Jvm
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
@@ -29,9 +37,12 @@ jobs:
- name: Downloading generator - name: Downloading generator
run: | run: |
curl http://nexus.xx/repository/jars/confluence-publisher.jar > confluence-publisher.jar curl http://nexus.xx/repository/jars/confluence-publisher.jar > confluence-publisher.jar
- name: Publishing - name: Publishing Documents
run: | run: |
java -jar confluence-publisher.jar --confluence-url http://192.168.76.136 --token '${{ secrets.CONFLUENCE_TOKEN }}' -f '**/*.md' java -jar confluence-publisher.jar --confluence-url http://192.168.76.136 --token '${{ secrets.CONFLUENCE_TOKEN }}' -f '**/*.md' -r './docs'
- name: Publishing MQ
run: |
java -jar confluence-publisher.jar --confluence-url http://192.168.76.136 --token '${{ secrets.CONFLUENCE_TOKEN }}' -f '**/*.md' -r './mq'
- name: 'Cleanup' - name: 'Cleanup'
if: always() if: always()
shell: bash shell: bash