Skip to content

Commit

Permalink
Fix docs-plugin-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianrbz committed Jan 15, 2024
1 parent fe097e6 commit 4e37c2c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-plugin-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -49,24 +53,26 @@ 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 }}"
env:
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
# Upload build PDFs
- uses: actions/upload-artifact@v4
with:
name: pdfs
name: "pdfs-plugin-${{ env.TODAY }}"
path: pdf-generation/pdfs/*.pdf

0 comments on commit 4e37c2c

Please sign in to comment.