Skip to content

Commit 9cc8dda

Browse files
committed
typst
1 parent fb08203 commit 9cc8dda

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

.github/workflows/static.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,11 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Setup Pages
3535
uses: actions/configure-pages@v4
36-
- name: set up typst
37-
shell: sudo -s /bin/bash {0}
38-
env:
39-
DEBIAN_FRONTEND: noninteractive
40-
CARGO_HOME: /usr/bin/cargo
41-
run: |
42-
apt-get update
43-
apt-get install -y libssl-dev curl fonts-font-awesome
44-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
45-
chmod +x rustup.sh
46-
$PWD/rustup.sh -y
47-
. $HOME/.cargo/env
48-
cargo install typst-cli
4936
- name: convert to pdf
50-
shell: bash
51-
run: |
52-
which cargo
37+
uses: 'docker://ghcr.io/pmmccorm/pmmccorm/typst-cli:latest'
38+
with:
39+
entrypoint: /usr/bin/typst
40+
args: 'compile resume.typ'
5341
- name: Upload artifact
5442
uses: actions/upload-pages-artifact@v3
5543
with:

.github/workflows/typst-container.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
permissions:
1313
contents: read
14-
id-token: write
14+
packages: write
1515

1616
concurrency:
1717
group: "container"
@@ -34,4 +34,4 @@ jobs:
3434
context: .
3535
file: ./Dockerfile
3636
push: true
37-
tags: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest
37+
tags: ghcr.io/${{ github.repository_owner }}/typst-cli:latest

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env -S docker build --pull . -f
2-
FROM ubuntu:noble as builder
2+
FROM ubuntu:noble AS builder
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
RUN apt-get update && apt-get install -y \
@@ -14,7 +14,7 @@ RUN chmod +x rustup.sh && ./rustup.sh --profile minimal -y && rm rustup.sh
1414

1515
RUN . /root/.cargo/env && cargo install typst-cli
1616

17-
FROM ubuntu:noble as runner
17+
FROM ubuntu:noble AS runner
1818
ENV DEBIAN_FRONTEND=noninteractive
1919

2020
RUN apt-get update && apt-get install -y fonts-font-awesome && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)