-
Notifications
You must be signed in to change notification settings - Fork 35
37 lines (32 loc) · 1.1 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: Deploy
"on":
push:
branches: main
jobs:
# Check out the main branch of the development repository and force update the
# main of the website repository. Setting fetch-depth to 0 allows us to
# retrieve all the history for the specified branch.
update-website:
name: Update Website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup SSH
uses: MrSquaare/ssh-setup-action@v1
with:
host: github.com
private-key: ${{ secrets.WEBSITE_DEPLOY_SSH_PRIVATE_KEY }}
- name: Update the github-pages branch of the website repository
env:
COMMIT_AUTHOR: Stanford-CRFM-Website
run: |
# Set up Git configuration
git config --global user.name "${{ env.COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
# Update the website repository
git remote add website git+ssh://[email protected]/stanford-crfm-website/ecosystem-graphs.git
git push -u website main