Skip to content

Commit

Permalink
ci: registry URLs Fixes (#4411)
Browse files Browse the repository at this point in the history
* ci: fix release branch CI action

* ci: typo

* chore: fix CI job

* chore: remove XML exclusion

* ci: remove xml exclusion

* save
  • Loading branch information
karl-cardenas-coding committed Oct 22, 2024
1 parent cbcdb82 commit 80aee19
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- name: Make Robots.txt
run: |
touch static/robots.txt
echo "User-agent: *" >> robots.txt
echo "Disallow: /" >> robots.txt
excho "Sitemap: https://docs-latest.spectrocloud.com/sitemap.xml" >> robots.txt
echo "User-agent: *" >> static/robots.txt
echo "Disallow: /" >> static/robots.txt
echo "Sitemap: https://docs-latest.spectrocloud.com/sitemap.xml" >> static/robots.txt
- name: Ensure noIndex is set
id: check_noindex
run: node scripts/noindex_docusaurus_config.js $RUNNER_TEMP $PWD && mv $RUNNER_TEMP/temp.docusaurus.config.js $PWD/docusaurus.config.j
run: node scripts/noindex_docusaurus_config.js $PWD


- name: Build
Expand All @@ -63,6 +63,17 @@ jobs:
- name: Deploy Preview
run: |
aws s3 sync --cache-control 'public, max-age=604800' --exclude '*.html' --exclude '*.xml' --exclude build/scripts/ build/ s3://docs-latest.spectrocloud.com --delete
aws s3 sync --cache-control 'public, max-age=604800' --exclude '*.html' --exclude build/scripts/ build/ s3://docs-latest.spectrocloud.com --delete
aws s3 sync --cache-control 'public, max-age=0, s-maxage=604800' build/ s3://docs-latest.spectrocloud.com --delete
aws cloudfront create-invalidation --distribution-id ${{ secrets.LATEST_DOCS_DISTRIBUTION_ID }} --paths "/*"
- name: Post Netlify URL
uses: mshick/add-pr-comment@v2
with:
message: |
🚀 docs-latest.spectrocloud.com preview deployed succesfully for commit ${{ github.sha }}. Click [here](https://docs-latest.spectrocloud.com) to preview the changes.
message-failure: |
👎 Uh oh! The Netlify Preview failed to deploy for commit ${{ github.sha }}. Please check the Netlify logs for more information.
refresh-message-position: true
update-only: false

0 comments on commit 80aee19

Please sign in to comment.