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