Skip to content

Commit

Permalink
Add checking for changes on GH action run
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLadas committed Aug 4, 2024
1 parent 2afb80f commit 3c8981a
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 6 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@ permissions:
contents: write

jobs:
changes:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'src/**'
build:
needs: changes
if: ${{ needs.changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
steps:

Expand All @@ -19,7 +34,7 @@ jobs:
- name: Compile typst
run: |
typst compile resume.typ --input title=${{ vars.TITLE }} --input author=${{ vars.AUTHOR }} --input email=${{ vars.EMAIL }} --input github=${{ vars.GITHUB }} --input linkedin=${{ vars.LINKEDIN }} --font-path fonts
typst compile src/resume.typ --input title=${{ vars.TITLE }} --input author=${{ vars.AUTHOR }} --input email=${{ vars.EMAIL }} --input github=${{ vars.GITHUB }} --input linkedin=${{ vars.LINKEDIN }} --font-path=src/fonts resume.pdf
- name: Get tag name
id: tag-name
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

### [My resume](https://github.com/MrLadas/resume/releases/latest/download/resume.pdf) written in [Typst](https://github.com/typst/typst)

Forked from my good friend [jLevere](https://github.com/jLevere/resume)

This repository contains my personal resume written in Typst. These documents are compiled using the Typst compiler in a GitHub Actions workflow. The compiler extracts input variables such as name and email directly from GitHub, which are then passed through the [--inputs](https://typst.app/docs/reference/foundations/sys/) CLI flag during the compilation process. Typst compiles the resume into a PDF format, and this PDF is then published as a release.

Expand All @@ -19,10 +18,8 @@ The compilation process is automated using GitHub Actions. Whenever changes are

## Credits

Forked from my good friend [jLevere](https://github.com/jLevere/resume)

This workflow is inspired by [this cool resume build system](https://github.com/mbund/resume).

For more information about Typst, visit the [official TypSt GitHub repository](https://github.com/typst/typst).




File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3c8981a

Please sign in to comment.