Skip to content

Commit 8adcb91

Browse files
committed
feat: deploy to github pages
1 parent da7910d commit 8adcb91

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/general.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,24 @@ jobs:
113113
-p @semantic-release/github \
114114
-p semantic-release \
115115
semantic-release
116+
117+
deploy-gh-pages:
118+
name: deploy-gh-pages
119+
if: github.ref == 'refs/heads/main'
120+
needs:
121+
- release
122+
runs-on: ubuntu-20.04
123+
steps:
124+
- name: Download resume.pdf from build-latex
125+
uses: actions/download-artifact@v2
126+
with:
127+
name: resume
128+
- name: Deploy to gh-pages branch
129+
uses: peaceiris/actions-gh-pages@v3
130+
with:
131+
github_token: ${{ secrets.GITHUB_TOKEN }}
132+
publish_branch: gh-pages
133+
publish_dir: .
134+
allow_empty_commit: true
135+
force_orphan: true
136+
commit_message: 'release: update gh-pages to latest version'

0 commit comments

Comments
 (0)