Skip to content

workflow: add robots.txt to dev deploy #23

workflow: add robots.txt to dev deploy

workflow: add robots.txt to dev deploy #23

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge to develop
'on':
push:
#branches:
#- develop
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.9.0
- name: Build Docusaurus
run: npm install && npm run build:dev
- name: Add robots.txt for Dev site only
run: echo -e ${{ format("User-agent{0} *\nDisallow{1} /", ':', ':') }} > build/robots.txt

Check failure on line 20 in .github/workflows/firebase-hosting-merge-develop.yml

View workflow run for this annotation

GitHub Actions / Deploy to Firebase Hosting on merge to develop

Invalid workflow file

The workflow is not valid. .github/workflows/firebase-hosting-merge-develop.yml (Line: 20, Col: 14): Unexpected symbol: '"User-agent{0}'. Located at position 8 within expression: format("User-agent{0} *\nDisallow{1} /", ':', ':')
- run: cat build/robots.txt
#- uses: FirebaseExtended/action-hosting-deploy@v0
#with:
#repoToken: '${{ secrets.GITHUB_TOKEN }}'
#firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GOLIOTH }}'
#channelId: live
#projectId: golioth
#target: docs-dev
#expires: 30d
#env:
#FIREBASE_CLI_PREVIEWS: hostingchannels