-
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.
- Loading branch information
1 parent
19f61a8
commit 324a2f4
Showing
3 changed files
with
613 additions
and
52 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 |
---|---|---|
|
@@ -156,42 +156,46 @@ jobs: | |
path: ${{ github.workspace }}/resume.pdf | ||
|
||
|
||
Deploy-To-GHPage: | ||
# Make a commit to the gh-page branch | ||
|
||
name: Updating Index.html 🏗 | ||
needs: [Convert-Resume-HTML, Convert-Resume-PDF] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: gh-page | ||
|
||
- name: Download the resume HTML artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: resume.html | ||
|
||
- name: Download the resume PDF artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: resume.pdf | ||
|
||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
|
||
- run: mkdir -p docs && mv resume.html docs/index.html | ||
- run: mv resume.pdf docs/resume_${{ steps.date.outputs.date }}.pdf | ||
|
||
- name: Publish GH Page | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
add: docs/ | ||
branch: gh-page | ||
message: Auto Update index.html | ||
author_name: Mark Reyes | ||
committer_name: GitHub Actions | ||
committer_email: [email protected] | ||
# TODO: The below step is no longer needed. Need to consider updating the | ||
# resume GIST: | ||
# https://gist.github.com/mrreyes512/91db4ee7d322c69ed3131fd586ae03b2 | ||
|
||
# Deploy-To-GHPage: | ||
# # Make a commit to the gh-page branch | ||
|
||
# name: Updating Index.html 🏗 | ||
# needs: [Convert-Resume-HTML, Convert-Resume-PDF] | ||
# runs-on: ubuntu-20.04 | ||
# steps: | ||
|
||
# - name: Check out repository code | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# ref: gh-page | ||
|
||
# - name: Download the resume HTML artifact | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: resume.html | ||
|
||
# - name: Download the resume PDF artifact | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: resume.pdf | ||
|
||
# - name: Get current date | ||
# id: date | ||
# run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
|
||
# - run: mkdir -p docs && mv resume.html docs/index.html | ||
# - run: mv resume.pdf docs/resume_${{ steps.date.outputs.date }}.pdf | ||
|
||
# - name: Publish GH Page | ||
# uses: EndBug/add-and-commit@v7 | ||
# with: | ||
# add: docs/ | ||
# branch: gh-page | ||
# message: Auto Update index.html | ||
# author_name: Mark Reyes | ||
# committer_name: GitHub Actions | ||
# committer_email: [email protected] |
Oops, something went wrong.