Skip to content

Update main.yml

Update main.yml #20

Workflow file for this run

# example GitHub workflow
name: Publish resume in JSONResume format as Github Page
on:
push:
branches: [ master, test/* ]
jobs:
check_run:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"
build:
runs-on: ubuntu-latest
needs: check_run
steps:
- uses: actions/checkout@v4
- name: checkout gh pages branch
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- uses: kelvintaywl/action-jsonresume-export@v1
name: Export resume as HTML
with:
theme: macchiato
resume_filepath: resume.json
# modifies the index.html in-place
output_filepath: gh-pages/index.html
- name: Commit published HTML
id: commit
run: |
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add index.html
git commit -m "chore(gh-pages/index.html): update resume page"
git push origin gh-pages