Merge pull request #7 from ieeeucsd/ray-dev
bring firebase up to ray-dev
This commit is contained in:
commit
5c81f933f8
2 changed files with 1 additions and 40 deletions
2
.github/workflows/firebase.yml
vendored
2
.github/workflows/firebase.yml
vendored
|
@ -2,7 +2,7 @@ name: deploy-production
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [firebase]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
|
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
|
@ -1,39 +0,0 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: build-page-branch
|
|
||||||
|
|
||||||
# Controls when the workflow will run
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build:
|
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
|
|
||||||
# Builds the react site for github pages
|
|
||||||
- name: Build Static Pages
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
||||||
mv CNAME build/public
|
|
||||||
mv build/public docs
|
|
||||||
echo "# DO NOT MANUALLY PUSH TO THIS BRANCH, ANY WORK DONE WILL BE ERASED. ITS WORK COMES FROM MASTER AND IT WILL BE REWRITTEN THE NEXT TIME AN ACTION OCCURS ON THE MASTER BRANCH" > README.md
|
|
||||||
git config --global user.name 'github-actions[bot]'
|
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
||||||
git stash
|
|
||||||
git checkout -b page
|
|
||||||
git stash pop
|
|
||||||
git add .
|
|
||||||
git commit -m "Deploy Site"
|
|
||||||
git push origin page --force
|
|
Loading…
Reference in a new issue