Skip to content

Commit

Permalink
fixing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-at-IBM committed Mar 19, 2024
1 parent 19f61a8 commit 324a2f4
Show file tree
Hide file tree
Showing 3 changed files with 613 additions and 52 deletions.
82 changes: 43 additions & 39 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Loading

0 comments on commit 324a2f4

Please sign in to comment.