Skip to content

Merge pull request #222 from stanford-crfm/revert-217-jonathan/090524… #85

Merge pull request #222 from stanford-crfm/revert-217-jonathan/090524…

Merge pull request #222 from stanford-crfm/revert-217-jonathan/090524… #85

Workflow file for this run

---
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