Skip to content

Commit

Permalink
Update workflow to build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsmania committed Nov 10, 2023
1 parent 73a49bf commit 60f6b76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build And Publish
# Controls when the workflow will run
on:

# Triggers the workflow on push or pull request events but only for the "main" branch
# Triggers the workflow on push or pull request events for the "main" branch
push:
branches: [ "main" ]
pull_request:
Expand All @@ -12,32 +12,34 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
# A workflow is made up of one or more jobs that can run sequentially or in
# parallel
jobs:

# Build the Latex files
# Job to build the LateX files
build:

# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
# Steps represent a sequence of tasks that will be executed as part of
# the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it
- name: Checkout source code
uses: actions/checkout@v3

# Build the LaTeX document
# Build the LaTeX document to create a PDF file
- name: Build LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: curriculum_vitae.tex

# Build the Github page
# TODO: Review this step...
- name: Build Github page
run: mv curriculum_vitae.pdf _site/David_Davo_CV_English.pdf
run: mv curriculum_vitae.pdf website/Diego_Smania_CV_English.pdf

# TODO: Check what this actions does
- name: Upload GitHub Pages artifact
Expand All @@ -46,7 +48,7 @@ jobs:
# Deploy to Github pages
deploy:

# This job requires the build one to be executed first
# This job requires the build job to be executed first
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
Expand Down
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>Diego Fabián Smania</h1>
</p>
<ul>
<li>
<a href="Smania_Diego_CV_English.pdf">CV English Version</a>
<a href="Diego_Smania_CV_English.pdf">CV English Version</a>
</li>
</ul>
</body>
Expand Down

0 comments on commit 60f6b76

Please sign in to comment.