Skip to content

Commit ce9ed4f

Browse files
committed
fix: Added fonts and made them work
1 parent bfd8c4a commit ce9ed4f

File tree

10 files changed

+27
-27
lines changed

10 files changed

+27
-27
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: Build Typst document
2-
on: [push, workflow_dispatch]
3-
1+
name: Compile, Upload and Release Typst Documents
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- '**'
47
permissions:
58
contents: write
6-
79
jobs:
810
build:
911
runs-on: ubuntu-latest
1012
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
13-
- name: Typst
14-
uses: lvignoli/typst-action@v0
15-
with:
16-
source_file: |
17-
summary.typ
18-
- name: Upload PDF file
19-
uses: actions/upload-artifact@v3
20-
with:
21-
name: PDFs
22-
path: |
23-
summary.pdf
24-
- name: Get current date
25-
id: date
26-
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
27-
- name: Release
28-
uses: softprops/action-gh-release@v1
29-
if: github.ref_type == 'tag'
30-
with:
31-
name: "${{ github.ref_name }} — ${{ env.DATE }}"
32-
files: "*.pdf"
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
- name: Compile Typst Files
16+
uses: ammar-ahmed22/compile-typst-action@v1
17+
with:
18+
source_paths: 'summary.typ'
19+
output_paths: 'summary.pdf'
20+
fonts_path: 'fonts'
21+
- name: Upload Artifacts
22+
uses: actions/upload-artifact@v3
23+
with:
24+
name: PDF
25+
path: '**/*.pdf'
26+
- name: Release on tag
27+
uses: softprops/action-gh-release@v1
28+
if: github.ref_type == 'tag'
29+
with:
30+
name: "${{ github.ref_name }}"
31+
files: |
32+
summary.pdf

fonts/Archivo-Bold.ttf

101 KB
Binary file not shown.

fonts/Archivo-BoldItalic.ttf

103 KB
Binary file not shown.

fonts/Archivo-Italic.ttf

102 KB
Binary file not shown.

fonts/Archivo-Medium.ttf

101 KB
Binary file not shown.

fonts/Archivo-MediumItalic.ttf

103 KB
Binary file not shown.

fonts/Archivo-Regular.ttf

99 KB
Binary file not shown.

fonts/Archivo-SemiBold.ttf

101 KB
Binary file not shown.

fonts/Archivo-SemiBoldItalic.ttf

103 KB
Binary file not shown.

summary.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#show math.equation: set text(blue)
22

3-
#set text(font: "Arial")
3+
#set text(font: "Archivo")
44

55
#set page(footer: context [
66
#align(center)[

0 commit comments

Comments
 (0)