From eb36354c82a9e710607ec98e24f86abd7e0cacfa Mon Sep 17 00:00:00 2001 From: Joseph Cosentino Date: Thu, 13 Jun 2024 22:52:58 -0700 Subject: [PATCH] split out build and release --- .github/workflows/build.yml | 25 +++++++++++++++++++ .github/workflows/{resume.yml => release.yml} | 10 ++++---- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{resume.yml => release.yml} (92%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..729fb88 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build Resume +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-pdf: + name: Build PDF + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: baileyjm02/markdown-to-pdf@v1 + with: + input_path: resume.md + theme: resume.css + output_dir: out + build_html: false + - uses: actions/upload-artifact@v3 + with: + name: resume + path: out diff --git a/.github/workflows/resume.yml b/.github/workflows/release.yml similarity index 92% rename from .github/workflows/resume.yml rename to .github/workflows/release.yml index ece9669..160ea51 100644 --- a/.github/workflows/resume.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,12 @@ -name: Resume +name: Release Resume on: push: - branches: - - main + tags: + - 'v*' jobs: - generate-pdf: - name: Generate PDF + release-pdf: + name: Release PDF runs-on: ubuntu-latest steps: - uses: actions/checkout@v4