File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 4
4
name : Deploy to Firebase Hosting on merge to develop
5
5
' on ' :
6
6
push :
7
- branches :
8
- - develop
7
+ # branches:
8
+ # - develop
9
9
jobs :
10
10
build_and_deploy :
11
11
runs-on : ubuntu-latest
@@ -14,14 +14,18 @@ jobs:
14
14
- uses : actions/setup-node@v3
15
15
with :
16
16
node-version : 20.9.0
17
- - run : npm install && npm run build:dev
18
- - uses : FirebaseExtended/action-hosting-deploy@v0
19
- with :
20
- repoToken : ' ${{ secrets.GITHUB_TOKEN }}'
21
- firebaseServiceAccount : ' ${{ secrets.FIREBASE_SERVICE_ACCOUNT_GOLIOTH }}'
22
- channelId : live
23
- projectId : golioth
24
- target : docs-dev
25
- expires : 30d
26
- env :
27
- FIREBASE_CLI_PREVIEWS : hostingchannels
17
+ - name : Build Docusaurus
18
+ run : npm install && npm run build:dev
19
+ - name : Add robots.txt for Dev site only
20
+ run : echo -e "${{ format("User-agent{0} *\nDisallow{1} /", ':', ':') }} > build/robots.txt
21
+ - run : cat build/robots.txt
22
+ # - uses: FirebaseExtended/action-hosting-deploy@v0
23
+ # with:
24
+ # repoToken: '${{ secrets.GITHUB_TOKEN }}'
25
+ # firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GOLIOTH }}'
26
+ # channelId: live
27
+ # projectId: golioth
28
+ # target: docs-dev
29
+ # expires: 30d
30
+ # env:
31
+ # FIREBASE_CLI_PREVIEWS: hostingchannels
You can’t perform that action at this time.
0 commit comments