From 0716aebf1edaebac375af2ea7c81ba46657a9d7d Mon Sep 17 00:00:00 2001 From: razzle Date: Sat, 6 Jan 2024 16:44:38 -0600 Subject: [PATCH] cleanup Signed-off-by: razzle --- .github/actions/compile/action.yml | 11 ----------- .github/actions/dependencies/action.yml | 14 ++++++++++++++ .github/actions/fonts/action.yml | 14 -------------- .github/workflows/ci.yml | 6 +++--- 4 files changed, 17 insertions(+), 28 deletions(-) delete mode 100644 .github/actions/compile/action.yml create mode 100644 .github/actions/dependencies/action.yml delete mode 100644 .github/actions/fonts/action.yml diff --git a/.github/actions/compile/action.yml b/.github/actions/compile/action.yml deleted file mode 100644 index fc50d81..0000000 --- a/.github/actions/compile/action.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Compile CV using Typst -description: Compiles the CV using Typst via Docker - -runs: - using: composite - steps: - - name: Compile CV using Typst - shell: bash - run: | - brew install typst - typst compile cv.typ diff --git a/.github/actions/dependencies/action.yml b/.github/actions/dependencies/action.yml new file mode 100644 index 0000000..f5fe006 --- /dev/null +++ b/.github/actions/dependencies/action.yml @@ -0,0 +1,14 @@ +name: Install dependencies +description: Downloads and installs dependencies + +runs: + using: composite + steps: + - name: Brew Install + shell: bash + run: | + brew install typst font-pt-sans + + typst -V + + typst fonts | grep "PT Sans" diff --git a/.github/actions/fonts/action.yml b/.github/actions/fonts/action.yml deleted file mode 100644 index 8f31131..0000000 --- a/.github/actions/fonts/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Install PT Sans Font -description: Downloads and installs the PT Sans font - -runs: - using: composite - steps: - - name: Install PT Sans Font - shell: bash - run: | - wget -O pt_sans.zip "https://fonts.google.com/download?family=PT%20Sans" - unzip -d pt_sans/ pt_sans.zip - mkdir -p ~/.fonts - mv pt_sans ~/.fonts/ - fc-cache -v diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79cb95f..2cc5efe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install fonts - uses: ./.github/actions/fonts + - name: Install dependencies + uses: ./.github/actions/dependencies - name: Compile cv - uses: ./.github/actions/compile + run: typst compile cv.typ