Merge pull request #170 from stanford-crfm/jonathan/0428-weekly-assets #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |