Skip to content

Commit

Permalink
Merge pull request #320 from cagov/jbum-robots-sitemap-fix
Browse files Browse the repository at this point in the history
Repaired robots.txt file.
  • Loading branch information
jbum authored May 24, 2024
2 parents 25915f2 + 195438f commit e8b4fe2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ jobs:
npm run build
npx playwright install
npm test
# Push built site files to S3 production bucket
- name: Write robots.txt
run: |
echo 'User-agent: *' > _site/robots.txt
echo 'Allow: /' >> _site/robots.txt
echo 'Sitemap: https://innovation.ca.gov/sitemap.xml' >> _site/robots.txt
# Push built site files to S3 production bucket
- name: Deploy to S3
uses: jakejarvis/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/eleventy_build_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
run: |
echo 'User-agent: *' > _site/robots.txt
echo 'Disallow: /' >> _site/robots.txt
echo 'Sitemap: https://innovation.ca.gov/sitemap.xml' >> _site/robots.txt
- name: Deploy to S3
uses: jakejarvis/[email protected]
with:
Expand Down

0 comments on commit e8b4fe2

Please sign in to comment.