Skip to content

chore(deps): bump ruby/setup-ruby from 1.319.0 to 1.321.0 #1363

chore(deps): bump ruby/setup-ruby from 1.319.0 to 1.321.0

chore(deps): bump ruby/setup-ruby from 1.319.0 to 1.321.0 #1363

Workflow file for this run

name: Docs preview
on:
pull_request:
types:
# Trigger when the pull request is labelled.
# Used to only deploy previews when the "docs preview" label is added.
- labeled
# Trigger when an existing PR is updated.
# Used to make sure new previews are deployed for changes after the label is added.
- synchronize
jobs:
# This job will:
# * deploy a draft every time there is a pull request created that has the expected label
# * comment on that pull request with the deploy URL
docs-preview:
name: Deploy docs preview to Netlify
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'docs preview')
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version-file: .nvmrc
# Setup docs site
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: "4.0.5"
bundler-cache: true
working-directory: website
# Install dependencies
- run: npm ci
working-directory: website
- run: ./bin/static-build
working-directory: website
- name: Deploy draft to Netlify
uses: South-Paw/action-netlify-deploy@2e5ce944afb065f54453c5cc03291670687b454b
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: ./website/build
draft: true
comment-on-pull-request: true
config-path: ./netlify.toml