diff --git a/.github/workflows/contracts-random-beacon-docs.yml b/.github/workflows/contracts-random-beacon-docs.yml index 87e826bf5b..2be264b072 100644 --- a/.github/workflows/contracts-random-beacon-docs.yml +++ b/.github/workflows/contracts-random-beacon-docs.yml @@ -59,20 +59,25 @@ jobs: contracts-docs-publish: name: Publish contracts documentation needs: docs-detect-changes - if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/solidity/') - uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main + #TODO: remove alternative before merge + if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/solidity/')) || github.event_name == 'pull_request' + # TODO: switch `post-processing-command` to `main` before merge + uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@post-processing-command with: projectDir: /solidity/random-beacon - publish: true + postProcessingCommand: find ./generated-docs -name "*.md" -type f -exec sed -i '3i \n> **Warning:** This file documents a code which is not yet deployed to Mainnet.\n' {} + + # TODO: uncomment before merge + # publish: true addTOC: false - verifyCommits: true - destinationRepo: threshold-network/threshold - destinationFolder: ./docs/app-development/random-beacon/random-beacon-api - destinationBaseBranch: main - userEmail: 38324465+thesis-valkyrie@users.noreply.github.com - userName: Valkyrie - rsyncDelete: true - secrets: - githubToken: ${{ secrets.THRESHOLD_DOCS_GITHUB_TOKEN }} - gpgPrivateKey: ${{ secrets.THRESHOLD_DOCS_GPG_PRIVATE_KEY_BASE64 }} - gpgPassphrase: ${{ secrets.THRESHOLD_DOCS_GPG_PASSPHRASE }} + # TODO: uncomment before merge + # verifyCommits: true + # destinationRepo: threshold-network/threshold + # destinationFolder: ./docs/app-development/random-beacon/random-beacon-api + # destinationBaseBranch: main + # userEmail: 38324465+thesis-valkyrie@users.noreply.github.com + # userName: Valkyrie + # rsyncDelete: true + # secrets: + # githubToken: ${{ secrets.THRESHOLD_DOCS_GITHUB_TOKEN }} + # gpgPrivateKey: ${{ secrets.THRESHOLD_DOCS_GPG_PRIVATE_KEY_BASE64 }} + # gpgPassphrase: ${{ secrets.THRESHOLD_DOCS_GPG_PASSPHRASE }}