File: set_up_github_keys.sh

package info (click to toggle)
node-react 17.0.1%2Bdfsg%2B~cs106.58.5-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,976 kB
  • sloc: javascript: 280,795; cpp: 1,326; sh: 84; makefile: 27
file content (12 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -e

if [ -n "$GITHUB_TOKEN" ]; then

  GH_PAGES_DIR=$(pwd)/../react-gh-pages
  echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
  git config --global user.name "Circle CI"
  git config --global user.email "circle@reactjs.org"

fi