Skip to content

Commit 1ae9b0f

Browse files
authored
Merge branch 'master' into INTRO-DBaaS-learning-path
2 parents aee3107 + 87a1e21 commit 1ae9b0f

File tree

251 files changed

+641
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+641
-14
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and publish academy
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
workflow_dispatch:
8+
inputs:
9+
orgId:
10+
description: 'Organization ID'
11+
required: true
12+
token:
13+
description: 'Bearer token'
14+
required: true
15+
version:
16+
description: 'Module version'
17+
required: false
18+
default: ''
19+
20+
jobs:
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout site
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Hugo Extended
29+
uses: peaceiris/actions-hugo@v2
30+
with:
31+
hugo-version: '0.147.9'
32+
extended: true
33+
34+
- name: Install dependencies
35+
run: make setup
36+
37+
- name: Run production build test
38+
run: make build
39+
40+
- name: Publish to layer5 academy
41+
id: academy
42+
uses: layer5io/academy-build@v0.1.3
43+
with:
44+
orgId: ${{ github.event.inputs.orgId || secrets.ACADEMY_ORG_ID }}
45+
token: ${{ github.event.inputs.token || secrets.ACADEMY_TOKEN }}
46+
version: ${{ github.event.inputs.version != '' && github.event.inputs.version || github.ref_name }}
47+
48+
- name: Show response
49+
run: echo "${{ steps.academy.outputs.response }}"

Makefile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,19 @@
1414

1515
#include .github/build/Makefile.show-help.mk
1616

17-
## Install docs.layer5.io dependencies on your local machine.
17+
## Install academy-example dependencies on your local machine.
1818
## See https://gohugo.io/categories/installation
1919
setup:
2020
npm install
2121

22-
## Run docs.layer5.io on your local machine with draft and future content enabled.
22+
## Run on your local machine with draft and future content enabled.
2323
site: check-go
2424
hugo server -D -F
2525

26-
## Run docs.layer5.io on your local machine. Alternate method.
27-
site-fast:
28-
gatsby develop
29-
30-
## Build docs.layer5.io on your local machine.
3126
build:
3227
hugo
3328

34-
## Empty build cache and run docs.layer5.io on your local machine.
29+
## Empty build cache and run on your local machine.
3530
clean:
3631
hugo --cleanDestinationDir
3732
make site
@@ -42,6 +37,3 @@ check-go:
4237
@echo "Checking if Go is installed..."
4338
@command -v go > /dev/null || (echo "Go is not installed. Please install it before proceeding."; exit 1)
4439
@echo "Go is installed."
45-
46-
docker:
47-
docker compose watch

0 commit comments

Comments
 (0)