add current project and balance space #47
Workflow file for this run
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
name: Build & Release | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Compile PDF | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: resume*.tex | |
glob_root_file: true | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: resume | |
path: resume*.pdf | |
release: | |
needs: build | |
if: github.ref_type == 'tag' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: resume | |
- name: Get Time | |
uses: josStorer/get-current-time@v2 | |
id: time | |
with: | |
format: MMMM YYYY | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: resume.pdf | |
body: My resume as of ${{ steps.time.outputs.formattedTime }}. | |
deploy: | |
needs: build | |
if: github.ref_type == 'tag' | |
permissions: | |
id-token: write | |
pages: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Download Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: resume | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Upload Pages Artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: . | |
- name: Deploy Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |