From da610ee79b84d050a6251ed7158ec974537a36c1 Mon Sep 17 00:00:00 2001 From: Marco Otte-Witte Date: Fri, 8 Nov 2024 14:50:09 +0100 Subject: [PATCH 1/2] run Gravity on online PDF --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55fb9119bf..1b47a48a65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -146,6 +146,22 @@ jobs: - run: | git diff --exit-code site/_redirects + gravity: + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/download-artifact@v4 + with: + path: book + pattern: book/book/pandoc/paperback/100-exercises-to-learn-rust.pdf + - uses: pnpm/action-setup@v4 + with: + version: 9 + - name: Run Gravity + run: pnpm dlx @gravityci/cli "/book/**/*" + env: + GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }} + formatter: runs-on: ubuntu-latest steps: From 9f5e4a0d76b8df22f9ad666e5ce29e77815ae7a8 Mon Sep 17 00:00:00 2001 From: Marco Otte-Witte Date: Tue, 12 Nov 2024 12:34:36 +0100 Subject: [PATCH 2/2] debug --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b47a48a65..14c8d05e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,12 +153,13 @@ jobs: - uses: actions/download-artifact@v4 with: path: book - pattern: book/book/pandoc/paperback/100-exercises-to-learn-rust.pdf + pattern: online-pdf - uses: pnpm/action-setup@v4 with: version: 9 + - run: ls -las ./book - name: Run Gravity - run: pnpm dlx @gravityci/cli "/book/**/*" + run: pnpm dlx @gravityci/cli "./book/**/*" env: GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }}