Skip to content

chore(deps): bump webrick from 1.8.1 to 1.8.2 in /docs (#708) #351

chore(deps): bump webrick from 1.8.1 to 1.8.2 in /docs (#708)

chore(deps): bump webrick from 1.8.1 to 1.8.2 in /docs (#708) #351

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Build Docs
on:
push:
branches:
- main
- develop
workflow_dispatch:
env:
base_url: /VSDS-Linked-Data-Interactions
title: "Linked Data Interactions"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Determine version
id: version
run: |
export VERSION=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
echo "version=$VERSION" >> $>> $GITHUB_OUTPUT
- name: Setup Ruby
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa
with:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Build with Jekyll
run: |
cd docs
bundle install
bundle exec jekyll build --baseurl "${{env.base_url}}/${{steps.version.outputs.version}}" -s "./" -d "./_site"
env:
JEKYLL_ENV: production
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm i -g @yalz/gh-pages-multi
- run: |
git config --global user.email "[email protected]"
git config --global user.name "VSDS CI"
git config --global url.https://${{ env.PAT }}@github.com/.insteadOf https://github.com/
env:
PAT: ${{secrets.DEPLOY_DOCS_PAT}}
- run: |
gh-pages-multi deploy --title "${{env.title}}" -t ${{steps.version.outputs.version}} -s docs/_site
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}