mirror of
https://github.com/minio/docs.git
synced 2025-08-09 13:02:53 +03:00
More CI/CD fixups
This commit is contained in:
2
.github/workflows/makefile.yml
vendored
2
.github/workflows/makefile.yml
vendored
@@ -37,6 +37,6 @@ jobs:
|
|||||||
- name: upload-artifact
|
- name: upload-artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: minio-docs-artifact
|
name: assets
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
path: ./minio
|
path: ./minio
|
||||||
|
42
.github/workflows/minimal-build.yml
vendored
Normal file
42
.github/workflows/minimal-build.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Makefile CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: install-python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.12'
|
||||||
|
|
||||||
|
- name: pip-requirements
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: npm-setup
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: npm-install-setup
|
||||||
|
uses: bahmutov/npm-install@v1
|
||||||
|
with:
|
||||||
|
working-directory: ./
|
||||||
|
|
||||||
|
- name: build-docs
|
||||||
|
run: ./build-docs-ci-minimal.sh
|
||||||
|
|
||||||
|
- name: upload-artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-k8s-builds
|
||||||
|
compression-level: 9
|
||||||
|
path: ./minio
|
18
build-docs-ci-minimal.sh
Executable file
18
build-docs-ci-minimal.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
export PATH=${PATH}:${HOME}/.local/bin
|
||||||
|
export GITDIR=main
|
||||||
|
|
||||||
|
|
||||||
|
make SYNC_SDK=TRUE linux
|
||||||
|
make k8s
|
||||||
|
|
||||||
|
echo $(ls build)
|
||||||
|
|
||||||
|
mkdir -p minio/kubernetes/upstream
|
||||||
|
cp -vr build/${GITDIR}/k8s/html/* ./minio/kubernetes/upstream/
|
||||||
|
|
||||||
|
mkdir -p minio/linux
|
||||||
|
cp -vr build/${GITDIR}/linux/html/* ./minio/linux/
|
Reference in New Issue
Block a user