diff --git a/.gitea/workflows/build-script.yaml b/.gitea/workflows/build-script.yaml index 3bf78e7..73ee49d 100644 --- a/.gitea/workflows/build-script.yaml +++ b/.gitea/workflows/build-script.yaml @@ -17,10 +17,6 @@ jobs: runs-on: ubuntu-latest # Run the whole job inside a Docker container that has Typst installed - container: - image: ghcr.io/typst/typst:latest - options: --user root - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,10 +28,14 @@ jobs: - name: Compile all .typ files shell: bash - run: | - TYPST_SOURCE_DIR="${TYPST_SOURCE_DIR}" - BUILD_DIR="${BUILD_DIR}" - ./compile-all.bash + run: docker run --rm \ + -v "$PWD":/work \ + ghcr.io/typst/typst:latest \ + bash -c " + TYPST_SOURCE_DIR="${TYPST_SOURCE_DIR}" + BUILD_DIR="${BUILD_DIR}" + ./compile-all.bash + " - name: Upload PDFs if: always()