Skip to content

Commit ec85712

Browse files
committed
new tags
1 parent 641a4bc commit ec85712

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

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

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ on:
99
branches:
1010
- 'docs-testing-jesse'
1111
tags:
12-
- 'staging-*'
13-
- 'production-*'
12+
- 'staging-MKDOCS*'
13+
- 'MKDOCS*'
1414

1515
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.ref_name != 'docs-testing-jesse' || github.run_id}}-${{ github.ref_type != 'tag' || github.run_id }}
1717
cancel-in-progress: true
1818

1919
defaults:
2020
run:
2121
shell: bash
22-
22+
2323
jobs:
24-
build-and-deploy-flex-manual:
24+
build-and-deploy-mkdocs-site:
25+
timeout-minutes: 5
2526
runs-on: ubuntu-24.04
2627
permissions:
2728
id-token: write
@@ -45,19 +46,31 @@ jobs:
4546
- name: Set DEPLOY_ENV
4647
id: set-env
4748
run: |
48-
if [[ "${GITHUB_REF}" == refs/tags/production-* ]]; then
49+
if [[ "${GITHUB_REF}" == refs/tags/MKDOCS* ]] && [[ "${GITHUB_REF}" != refs/tags/staging-MKDOCS* ]]; then
4950
echo "DEPLOY_ENV=production" >> $GITHUB_ENV
50-
elif [[ "${GITHUB_REF}" == refs/tags/staging-* ]]; then
51+
elif [[ "${GITHUB_REF}" == refs/tags/staging-MKDOCS* ]]; then
5152
echo "DEPLOY_ENV=staging" >> $GITHUB_ENV
5253
else
5354
echo "DEPLOY_ENV=sandbox" >> $GITHUB_ENV
5455
fi
5556
- name: Sync the project
5657
working-directory: ./docs
5758
run: make setup
58-
- name: Build Flex Manual
59+
- name: Build Docs Site
5960
working-directory: ./docs
60-
run: make build-flex-manual
61-
- name: Deploy Flex Manual
61+
run: make build
62+
- name: Deploy Docs Site
6263
working-directory: ./docs
63-
run: make deploy-flex-manual ENVIRONMENT=${{ env.DEPLOY_ENV }} BRANCH=${{ env.BRANCH }}
64+
run: make deploy ENVIRONMENT=${{ env.DEPLOY_ENV }} BRANCH=${{ env.BRANCH }}
65+
- name: Output URL to Summary
66+
run: |
67+
if [[ "${{ env.DEPLOY_ENV }}" == "production" ]]; then
68+
echo "## Docs site deployed to production" >> $GITHUB_STEP_SUMMARY
69+
echo "<https://docs.opentrons.com/${{ env.BRANCH }}/>" >> $GITHUB_STEP_SUMMARY
70+
elif [[ "${{ env.DEPLOY_ENV }}" == "staging" ]]; then
71+
echo "## Docs site deployed to staging" >> $GITHUB_STEP_SUMMARY
72+
echo "<https://staging.docs.opentrons.com/${{ env.BRANCH }}/>" >> $GITHUB_STEP_SUMMARY
73+
else
74+
echo "## Docs site deployed to sandbox" >> $GITHUB_STEP_SUMMARY
75+
echo "<http://sandbox.docs.s3-website.us-east-2.amazonaws.com/${{ env.BRANCH }}/>" >> $GITHUB_STEP_SUMMARY
76+
fi

0 commit comments

Comments
 (0)