test3 #16
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: Update blog resume data | |
on: | |
push: | |
branches: | |
- brunopc | |
paths: | |
- public/resume.json | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout brunopc branch | |
uses: actions/checkout@v3 | |
with: | |
ref: brunopc | |
- name: Clone Docusaurus-Blog repository | |
uses: actions/checkout@v3 | |
with: | |
repository: brunopc-net/Docusaurus-Blog | |
ref: gh-pages | |
path: Docusaurus-Blog | |
- name: Set SSH deploy key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
- name: Set up Git user | |
run: | | |
git config --global user.email '[email protected]' | |
git config --global user.name 'Bruno PC' | |
- name: Update resume.json file | |
run: | | |
cp public/resume.json Docusaurus-Blog/data/ | |
- name: Commit & push changes | |
run: | | |
cd Docusaurus-Blog | |
git add data/resume.json | |
git commit -m "Reactsume updates resume.json" | |
git remote add external [email protected]:brunopc-net/Docusaurus-Blog.git | |
git push origin gh-pages |