Skip to content

Commit 998d539

Browse files
committed
moving to makefile
1 parent d67e4f7 commit 998d539

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.github/workflows/docs-build-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
defaults:
2020
run:
2121
shell: bash
22-
22+
2323
jobs:
2424
sandbox-build-and-deploy-flex-manual:
2525
if: github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/')
@@ -51,7 +51,7 @@ jobs:
5151
run: make build-flex-manual
5252
- name: Deploy Flex Manual to Sandbox
5353
working-directory: ./docs
54-
run: python deploy_flex_manual.py sandbox --branch ${{ env.BRANCH }}
54+
run: make deploy_flex_manual_sandbox
5555
- name: Output URL to Summary
5656
run: |
5757
echo "## Flex Manual deployed to sandbox" >> $GITHUB_STEP_SUMMARY
@@ -87,7 +87,7 @@ jobs:
8787
run: make build-flex-manual
8888
- name: Deploy Flex Manual to Staging
8989
working-directory: ./docs
90-
run: python deploy_flex_manual.py staging --branch ${{ env.BRANCH }}
90+
run: make deploy_flex_manual_staging
9191
- name: Output URL to Summary
9292
run: |
9393
echo "## Flex Manual deployed to staging" >> $GITHUB_STEP_SUMMARY
@@ -123,7 +123,7 @@ jobs:
123123
run: make build-flex-manual
124124
- name: Deploy Flex Manual to Production
125125
working-directory: ./docs
126-
run: python deploy_flex_manual.py production --branch ${{ env.BRANCH }}
126+
run: make deploy_flex_manual_production
127127
- name: Output URL to Summary
128128
run: |
129129
echo "## Flex Manual deployed to production" >> $GITHUB_STEP_SUMMARY

docs/Makefile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ serve-flex-manual:
1414
build-flex-manual:
1515
uv run mkdocs build -f $(FLEX_MANUAL_PREFIX)/mkdocs.yml
1616

17-
.PHONY: deploy-flex-manual-sandbox
18-
deploy-flex-manual-sandbox:
19-
python deploy_flex_manual.py sandbox $(if $(BRANCH),--branch $(BRANCH)) $(if $(AWS_PROFILE),--aws-profile $(AWS_PROFILE)) $(if $(FLEX_MANUAL_PREFIX),--flex-manual-prefix $(FLEX_MANUAL_PREFIX))
17+
.PHONY: deploy_flex_manual_sandbox
18+
deploy_flex_manual_production:
19+
python deploy_flex_manual.py sandbox --branch ${{ env.BRANCH }}
2020

21-
.PHONY: deploy-flex-manual-staging
22-
deploy-flex-manual-staging:
23-
python deploy_flex_manual.py staging $(if $(BRANCH),--branch $(BRANCH)) $(if $(AWS_PROFILE),--aws-profile $(AWS_PROFILE)) $(if $(FLEX_MANUAL_PREFIX),--flex-manual-prefix $(FLEX_MANUAL_PREFIX))
21+
.PHONY: deploy_flex_manual_staging
22+
deploy_flex_manual_production:
23+
python deploy_flex_manual.py staging --branch ${{ env.BRANCH }}
2424

25-
.PHONY: deploy-flex-manual-production
26-
deploy-flex-manual-production:
27-
python deploy_flex_manual.py production $(if $(BRANCH),--branch $(BRANCH)) $(if $(AWS_PROFILE),--aws-profile $(AWS_PROFILE)) $(if $(FLEX_MANUAL_PREFIX),--flex-manual-prefix $(FLEX_MANUAL_PREFIX))
28-
29-
# Backward compatibility - defaults to sandbox
30-
#.PHONY: deploy-flex-manual
31-
#deploy-flex-manual: deploy-flex-manual-sandbox
25+
.PHONY: deploy_flex_manual_production
26+
deploy_flex_manual_production:
27+
python deploy_flex_manual.py production --branch ${{ env.BRANCH }}

0 commit comments

Comments
 (0)