mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Update branch from master to main (#680)
This commit is contained in:
1 parent
186d590105
commit
a794613af2
4 files changed
+6
-7
No files matched your search
@@ -2,9 +2,9 @@ name: Core Tests.
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ name: Viewer Build and Deploy.
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -40,7 +40,6 @@ jobs:
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# if: github.ref == 'refs/heads/master'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{secrets.SSH_KEY}}
|
SSH_KEY: ${{secrets.SSH_KEY}}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Run prettier for Nerfviewer.
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
types: [closed]
|
types: [closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ def main(
|
|||||||
run_cmd(f"""scp -r {local_folder} {host}:/home/eweb0124/build""")
|
run_cmd(f"""scp -r {local_folder} {host}:/home/eweb0124/build""")
|
||||||
|
|
||||||
# update the symlink of latest
|
# update the symlink of latest
|
||||||
if branch_name == "master":
|
if branch_name == "main":
|
||||||
|
|
||||||
# move the build folder to the correct location
|
# move the build folder to the correct location
|
||||||
run_cmd(f"""ssh {host} 'rm -rf {remote_folder}/{version}'""")
|
run_cmd(f"""ssh {host} 'rm -rf {remote_folder}/{version}'""")
|
||||||
|
|||||||
Reference in new issue
Block a user