Skip to content

chore: update link to renamed slack workspace. #495

chore: update link to renamed slack workspace.

chore: update link to renamed slack workspace. #495

Workflow file for this run

# Copyright 2023 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
---
name: Build
'on':
workflow_call:
pull_request:
branches:
- main
jobs:
build-hugo:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.111.3
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup NodeJS environment
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: 'antora/package.json'
cache: 'npm'
cache-dependency-path: 'antora/package-lock.json'
- name: Setup Go environment
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: website/go.mod
cache: true
cache-dependency-path: website/go.sum
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Build documentation
run: npm --prefix antora ci && npm --prefix antora run build
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: ${{ github.event_name == 'pull_request' && 'development' || 'production'}}
HUGO_ENV: ${{ github.event_name == 'pull_request' && 'development' || 'production'}}
run: |
hugo \
--source website \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: public
name: website
pull-request-data:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Create pull request data
run: |
mkdir pull_request
echo ${{ github.event.pull_request.number }} > ./pull_request/number
- name: Upload pull request data
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: .
name: pull-request-data