diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy-documentation.yml index a481500c..6cff0a3b 100644 --- a/.github/workflows/deploy-documentation.yml +++ b/.github/workflows/deploy-documentation.yml @@ -15,11 +15,10 @@ on: jobs: generate-doc: - if: >- - (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: danysk/action-checkout@0.2.14 - name: Setup java uses: actions/setup-java@v3 @@ -74,11 +73,17 @@ jobs: spec-file: ./api-service/auth/swagger.json - name: Build slides with hugo - run: hugo + run: | + pushd docs/presentation + ls -la + hugo + popd + mkdir -p ./public/presentation && cp -r ./docs/presentation/public/ ./public/presentation/ - name: ls run: | ls -la ./public + ls -la ./public/presentation ls -la ./public/smart-contracts/ ls -la ./public/swagger-ui-api ls -la ./public/swagger-ui-auth @@ -87,5 +92,5 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: docs + publish_branch: api-doc publish_dir: ./public diff --git a/docs/presentation/hugo.toml b/docs/presentation/config.toml similarity index 100% rename from docs/presentation/hugo.toml rename to docs/presentation/config.toml