Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Merge pull request #252 from dirgim/STONEINTG-698 #398

Merge pull request #252 from dirgim/STONEINTG-698

Merge pull request #252 from dirgim/STONEINTG-698 #398

Workflow file for this run

# Copyright 2022 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: Publish website
'on':
push:
branches:
- main
repository_dispatch:
types:
- update
jobs:
antora:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/.npm
key: docs-${{ hashFiles('package-lock.json') }}
restore-keys: docs-
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Generate website
run: npm ci && npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3