diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml new file mode 100644 index 00000000..dbda8e5b --- /dev/null +++ b/.github/workflows/makefile.yml @@ -0,0 +1,45 @@ +name: Makefile CI + +on: + push: + branches: [ "main" ] + +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.sh + + - name: wrap-artifact + run: ./wrap-artifact.sh + + - name: upload-artifact + uses: actions/upload-artifact@v4 + with: + name: minio-docs-artifact + compression-level: 9 + path: ./minio diff --git a/build-docs-ci.sh b/build-docs-ci.sh new file mode 100755 index 00000000..2146d207 --- /dev/null +++ b/build-docs-ci.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -ex + +export PATH=${PATH}:${HOME}/.local/bin + + +make SYNC_SDK=TRUE linux +make windows macos container k8s openshift eks aks gke + +mkdir -p minio/kubernetes/upstream +cp -vr build/HEAD/k8s/html/* ./minio/kubernetes/upstream/ + +mkdir -p minio/kubernetes/eks +cp -vr build/HEAD/eks/html/* ./minio/kubernetes/eks/ + + +mkdir -p minio/kubernetes/gke +cp -vr build/HEAD/gke/html/* ./minio/kubernetes/gke/ + +mkdir -p minio/kubernetes/aks +cp -vr build/HEAD/aks/html/* ./minio/kubernetes/aks/ + +mkdir -p minio/kubernetes/openshift +cp -vr build/HEAD/openshift/html/* ./minio/kubernetes/openshift/ + +mkdir -p minio/container +cp -vr build/HEAD/container/html/* ./minio/container/ + +mkdir -p minio/linux +cp -vr build/HEAD/linux/html/* ./minio/linux/ + +mkdir -p minio/macos +cp -vr build/HEAD/macos/html/* ./minio/macos/ + +mkdir -p minio/windows +cp -vr build/HEAD/windows/html/* ./minio/windows/ diff --git a/sync-docs.sh b/sync-docs.sh index 6baa580d..45824b65 100755 --- a/sync-docs.sh +++ b/sync-docs.sh @@ -1,7 +1,6 @@ #!/bin/bash set -e -set -x function replace() { tmp_prefix=${RANDOM} diff --git a/sync-minio-server-docs.sh b/sync-minio-server-docs.sh index 4ea18ba8..b2fa988b 100755 --- a/sync-minio-server-docs.sh +++ b/sync-minio-server-docs.sh @@ -1,7 +1,6 @@ #!/bin/bash set -e -set -x function main() {