diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml new file mode 100644 index 0000000..bc7f40b --- /dev/null +++ b/.github/workflows/makefile.yml @@ -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/ +