Skip to content

Commit f5fd260

Browse files
committed
Release snapshot docs after CI build
1 parent 2f3a9fc commit f5fd260

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,6 @@ jobs:
130130
run: |
131131
make e2e-helm-test
132132
133-
- name: Deploy Snapshots & Docs
134-
if: ${{ github.ref == 'refs/heads/master' && success() }}
135-
env:
136-
MAVEN_SONATYPE_USERNAME: ${{ secrets.MAVEN_SONATYPE_USERNAME }}
137-
MAVEN_SONATYPE_TOKEN: ${{ secrets.MAVEN_SONATYPE_TOKEN }}
138-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
139-
shell: bash
140-
run: |
141-
git config --local user.name "Github Action"
142-
git config --local user.email "[email protected]"
143-
export NO_DAEMON=false
144-
sh ./hack/maven-gpg.sh
145-
make mvn-deploy GPG_PASSPHRASE=${GPG_PASSPHRASE}
146-
make push-snapshot-docs
147-
148133
- name: Upload Manifests
149134
uses: actions/upload-artifact@v1
150135
if: success()
@@ -171,3 +156,18 @@ jobs:
171156
with:
172157
name: test-output
173158
path: build/_output/test-logs
159+
160+
- name: Deploy Snapshots & Docs
161+
if: ${{ github.ref == 'refs/heads/master' && success() }}
162+
env:
163+
MAVEN_SONATYPE_USERNAME: ${{ secrets.MAVEN_SONATYPE_USERNAME }}
164+
MAVEN_SONATYPE_TOKEN: ${{ secrets.MAVEN_SONATYPE_TOKEN }}
165+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
166+
shell: bash
167+
run: |
168+
git config --local user.name "Github Action"
169+
git config --local user.email "[email protected]"
170+
export NO_DAEMON=false
171+
sh ./hack/maven-gpg.sh
172+
make mvn-deploy GPG_PASSPHRASE=${GPG_PASSPHRASE}
173+
make push-snapshot-docs

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,6 +2248,7 @@ endif
22482248
# ----------------------------------------------------------------------------------------------------------------------
22492249
.PHONY: push-snapshot-docs
22502250
push-snapshot-docs: $(BUILD_TARGETS)/generate $(BUILD_TARGETS)/manifests docs
2251+
rm -rf /tmp/coherence-operator || true
22512252
mkdir -p /tmp/coherence-operator || true
22522253
cp -R $(BUILD_OUTPUT) /tmp/coherence-operator
22532254
git stash save --keep-index --include-untracked || true
@@ -2256,7 +2257,7 @@ push-snapshot-docs: $(BUILD_TARGETS)/generate $(BUILD_TARGETS)/manifests docs
22562257
git config pull.rebase true
22572258
git pull
22582259
rm -rf docs/snapshot
2259-
mv $(BUILD_OUTPUT)/docs/ docs/snapshot/
2260+
mv /tmp/coherence-operator/docs/ docs/snapshot/
22602261
git add -A docs/*
22612262
git status
22622263
git clean -d -f

0 commit comments

Comments
 (0)