diff --git a/.github/workflows/build-plugin-pdf.yml b/.github/workflows/build-plugin-pdf.yml index 595c27865dc5..2a9810b9a40f 100644 --- a/.github/workflows/build-plugin-pdf.yml +++ b/.github/workflows/build-plugin-pdf.yml @@ -17,6 +17,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + with: + submodules: 'recursive' # Configure Ruby to build Jekyll site - name: Set up Ruby @@ -34,6 +36,8 @@ jobs: run: bundle config path ${{ github.workspace }}/vendor/bundle - name: Bundle Install run: bundle install --jobs 4 --retry 3 + - name: Install foreman + run: gem install foreman # Configure Node to build assets - uses: actions/setup-node@v4 @@ -49,11 +53,11 @@ jobs: restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- - # Build the Docs - - name: Build Docs + - run: npm ci + + - name: Set date run: | - npm ci - exe/build + echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV # Build the PDF - name: Generate PDF for Plugin "${{ github.event.inputs.plugin }}" @@ -61,6 +65,8 @@ jobs: KONG_PLUGIN_NAME: "${{ github.event.inputs.plugin }}" KONG_PLUGIN_VERSION: "${{ github.event.inputs.version }}" run: | + npm install -g wait-on netlify-cli + netlify dev & wait-on http://localhost:8888 cd pdf-generation npm ci node run.js @@ -68,5 +74,5 @@ jobs: # Upload build PDFs - uses: actions/upload-artifact@v4 with: - name: pdfs + name: "pdfs-plugin-${{ env.TODAY }}" path: pdf-generation/pdfs/*.pdf