-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update blog resume when there's a change in Reactsume data
- Loading branch information
1 parent
9ba4c18
commit dca3b4b
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Update blog resume data | ||
|
||
on: | ||
push: | ||
branches: | ||
- brunopc | ||
paths: | ||
- public/resume.json | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout brunopc branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: brunopc | ||
|
||
- name: Set up Git user | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Clone Docusaurus-Blog repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: brunopc-net/Docusaurus-Blog | ||
ref: gh-pages | ||
path: Docusaurus-Blog | ||
|
||
- name: Update resume.json file | ||
run: | | ||
cp public/resume.json Docusaurus-Blog/data/ | ||
- name: Commit changes | ||
run: | | ||
cd Docusaurus-Blog | ||
git add resume.json | ||
git commit -m "Reactsume updates resume.json" | ||
- name: Push changes | ||
run: | | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} |