-
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
6231edd
commit 9e2c789
Showing
1 changed file
with
37 additions
and
39 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 |
---|---|---|
@@ -1,62 +1,60 @@ | ||
name: Build resume | ||
name: Build and Deploy Resume | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
pages: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y pandoc texlive texlive-xetex | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y pandoc texlive texlive-xetex | ||
- name: Convert Markdown to PDF | ||
run: pandoc resume.md --standalone --css=styling.css -o resume.pdf | ||
- name: Convert Markdown to PDF | ||
run: pandoc resume.md --standalone --css=styling.css -o resume.pdf | ||
|
||
- name: Convert Markdown to DOCX | ||
run: pandoc resume.md --standalone --css=styling.css -o resume.docx | ||
- name: Convert Markdown to DOCX | ||
run: pandoc resume.md --standalone --css=styling.css -o resume.docx | ||
|
||
- name: Convert Markdown to HTML | ||
run: pandoc resume.md --standalone --css=styling.css -o index.html | ||
- name: Convert Markdown to HTML | ||
run: pandoc resume.md --standalone --css=styling.css -o index.html | ||
|
||
- name: List directory and files | ||
run: ls & pwd | ||
- name: List directory and files | ||
run: | | ||
ls | ||
pwd | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: github-pages | ||
path: '.' | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: github-pages | ||
path: . | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: github-pages | ||
path: '.' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: github-pages | ||
path: . | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: . |