Skip to content

Commit

Permalink
Set up website publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson committed Oct 11, 2024
1 parent f719f60 commit 462dba2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This is a basic workflow to help you get started with Actions

name: CI

on:
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
# We want to hook up the mindersec/minder repo to trigger this action
# on pushes to the main branch under docs.
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout docs
uses: actions/checkout@v4
with:
# TODO: change this to mindersec/minder once it is moved.
repository: stacklok/minder

- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build website
run: npm run build

# Copied from https://github.com/stacklok/minder/blob/main/.github/workflows/deploy-doc.yaml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docs/build
cname: mindersec.github.io
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Website for Minder

This site publishes the content from
https://github.com/mindersec/minder/tree/main/docs to GitHub Pages. You probably
want to make your changes there, unless you're looking to change the publishing
process.

0 comments on commit 462dba2

Please sign in to comment.