redirects: properly redirect virtual-device(s) #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
- 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 |