Skip to content

Commit

Permalink
Adding CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindk89 committed Nov 18, 2024
1 parent 94caba2 commit 6ab9a19
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Makefile CI

on:
push:
branches: [ "main" ]
pull_request:
type: ["opened","synchronize"]
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: npm-setup
uses: actions/setup-node@v4
with:
node-version: 20

- name: npm-install-setup
uses: bahmutov/npm-install@v1
with:
working-directory: ./themes/kes-docs-theme
useLockFile: false

- name: npm-build
run: npm run build
working-directory: ./themes/kes-docs-theme

- name: hugo-install
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.138.0'
extended: true

- name: Build
run: hugo

- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: docs-keymanager-artifact
compression-level: 9
path: ./public/

0 comments on commit 6ab9a19

Please sign in to comment.