Skip to content

Commit 06f1631

Browse files
committed
fix: add checks and tests to publish
1 parent 680ee6b commit 06f1631

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ jobs:
9191
with:
9292
go-version-file: go.mod
9393

94+
- name: Verify
95+
run: |
96+
make verify
97+
9498
- name: Cross Build
9599
if: ${{ env.SKIP != 'true' }}
96100
run: |
@@ -141,6 +145,12 @@ jobs:
141145
echo "$binfiles"
142146
echo "EOF"
143147
} >> $GITHUB_ENV
148+
149+
- name: Run Integration Tests
150+
if: ${{ env.SKIP != 'true' }}
151+
run: |
152+
.ci/dev_integration_test TARGET_CLUSTERNAME=cli-re
153+
144154
- name: Check if VERSION is already tagged
145155
id: check_tag
146156
run: |
@@ -174,6 +184,21 @@ jobs:
174184
git push origin "${MODULE}/${{ env.version }}"
175185
done
176186
187+
- name: Generate docs
188+
needs: [verify]
189+
run: |
190+
# Assuming a task or script exists to generate docs
191+
make generate_docs || true
192+
193+
- name: Publish docs to source branch (optional)
194+
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
195+
run: |
196+
# Commit or push docs if required
197+
# git config user.name "github-actions"
198+
# git config user.email "[email protected]"
199+
# git add docs && git commit -m "docs: update" || true
200+
echo "Docs generated."
201+
177202
- name: Build Changelog
178203
if: ${{ env.SKIP != 'true' }}
179204
id: github_release
@@ -190,8 +215,9 @@ jobs:
190215
body_path: ./CHANGELOG.md
191216
draft: true
192217
prerelease: false
218+
# Newline-delimited globs of paths to assets to upload for release, set by cross-build
193219
files: |
194-
${{ env.BIN_BUILDS }}
220+
${{ env.BIN_BUILDS }}
195221
env:
196222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197223

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
66
EFFECTIVE_VERSION := $(shell $(REPO_ROOT)/hack/get-version.sh)
77

8-
CODE_DIRS := $(REPO_ROOT)/cmd/... $(REPO_ROOT)/pkg/... $(REPO_ROOT)/landscaper-cli/... $(REPO_ROOT)/integration-test/...
8+
CODE_DIRS := $(REPO_ROOT)/cmd/... $(REPO_ROOT)/pkg/... $(REPO_ROOT)/cmd/landscapercli/... $(REPO_ROOT)/integration-test/...
99

1010

1111
##@ General

0 commit comments

Comments
 (0)