Skip to content

Commit 132999c

Browse files
committed
Fixing staging links
1 parent 009a153 commit 132999c

File tree

5 files changed

+76
-87
lines changed

5 files changed

+76
-87
lines changed

.github/workflows/makefile.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,15 @@ jobs:
4040
name: assets
4141
compression-level: 9
4242
path: ./minio
43+
44+
- name: Publishing
45+
uses: burnett01/[email protected]
46+
with:
47+
path: ./minio/
48+
switches: --mkpath -rv --delete
49+
remote_path: ${{ secrets.DEPLOY_PATH }}/${{ github.event.pull_request.head.ref }}
50+
remote_host: ${{ secrets.DEPLOY_HOST }}
51+
remote_port: ${{ secrets.DEPLOY_PORT }}
52+
remote_user: ${{ secrets.DEPLOY_USER }}
53+
remote_key: ${{ secrets.DEPLOY_KEY }}
54+
remote_key_pass: ${{ secrets.DEPLOY_KEY_PASS }}

.github/workflows/minimal-build.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/pr-ci-cd.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Staging
2+
3+
on:
4+
pull_request:
5+
type: ["opened","synchronize"]
6+
7+
jobs:
8+
build-and-stage:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v4
15+
16+
- name: install-python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.12'
20+
21+
- name: pip-requirements
22+
run: pip install -r requirements.txt
23+
24+
- name: npm-setup
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
29+
- name: npm-install-setup
30+
uses: bahmutov/npm-install@v1
31+
with:
32+
working-directory: ./
33+
34+
- name: build-docs
35+
run: ./build-docs-ci.sh
36+
37+
- name: Staging
38+
uses: burnett01/[email protected]
39+
with:
40+
path: ./minio/
41+
switches: --mkpath -rv --delete
42+
remote_path: ${{ secrets.DEPLOY_PATH }}/${{ github.event.pull_request.head.ref }}
43+
remote_host: ${{ secrets.DEPLOY_HOST }}
44+
remote_port: ${{ secrets.DEPLOY_PORT }}
45+
remote_user: ${{ secrets.DEPLOY_USER }}
46+
remote_key: ${{ secrets.DEPLOY_KEY_STAGING }}
47+
remote_key_pass: ${{ secrets.DEPLOY_KEY_STAGING_PASS }}
48+
49+
- name: comment
50+
uses: actions/github-script@v7
51+
with:
52+
github-token: ${{secrets.GITHUB_TOKEN}}
53+
script: |
54+
github.rest.issues.createComment({
55+
issue_number: context.issue.number,
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
body: "Staged at ${{ secrets.STAGING_URL }}/${{ github.event.pull_request.head.ref }}"
59+
})
60+
61+

build-docs-ci-minimal.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

build-docs-ci.sh

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,7 @@ export PATH=${PATH}:${HOME}/.local/bin
66
export GITDIR=main
77

88

9-
make SYNC_SDK=TRUE linux
10-
make windows macos container k8s openshift eks aks gke
9+
make SYNC_SDK=TRUE mindocs
1110

12-
mkdir -p minio/kubernetes/upstream
13-
cp -vr build/${GITDIR}/k8s/html/* ./minio/kubernetes/upstream/
14-
15-
mkdir -p minio/kubernetes/eks
16-
cp -vr build/${GITDIR}/eks/html/* ./minio/kubernetes/eks/
17-
18-
19-
mkdir -p minio/kubernetes/gke
20-
cp -vr build/${GITDIR}/gke/html/* ./minio/kubernetes/gke/
21-
22-
mkdir -p minio/kubernetes/aks
23-
cp -vr build/${GITDIR}/aks/html/* ./minio/kubernetes/aks/
24-
25-
mkdir -p minio/kubernetes/openshift
26-
cp -vr build/${GITDIR}/openshift/html/* ./minio/kubernetes/openshift/
27-
28-
mkdir -p minio/container
29-
cp -vr build/${GITDIR}/container/html/* ./minio/container/
30-
31-
mkdir -p minio/linux
32-
cp -vr build/${GITDIR}/linux/html/* ./minio/linux/
33-
34-
mkdir -p minio/macos
35-
cp -vr build/${GITDIR}/macos/html/* ./minio/macos/
36-
37-
mkdir -p minio/windows
38-
cp -vr build/${GITDIR}/windows/html/* ./minio/windows/
11+
mkdir -p minio/
12+
cp -vr build/${GITDIR}/mindocs/html/* ./minio/

0 commit comments

Comments
 (0)