Skip to content

chore(deps): update dependency org.kohsuke:github-api to v1.326 (#7648) #56

chore(deps): update dependency org.kohsuke:github-api to v1.326 (#7648)

chore(deps): update dependency org.kohsuke:github-api to v1.326 (#7648) #56

Workflow file for this run

name: Build and Deploy Website
on:
push:
branches:
- main
pull_request:
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
permissions:
contents: write # for JamesIves/github-pages-deploy-action to push changes in repo
jobs:
build-detekt-docs:
if: github.repository == 'detekt/detekt'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Java
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: 'website/yarn.lock'
- name: Run generateWebsite
run: ./gradlew :detekt-generator:generateWebsite
- name: Install Yarn Dependencies
working-directory: website/
run: yarn install --frozen-lockfile
- name: Build the Detekt Website
working-directory: website/
run: yarn build
- name: Deploy GitHub Pages (only on main)
uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: website/build/