From 439e5aba0a2ef710cf582e102facb6dec4757f3f Mon Sep 17 00:00:00 2001 From: ading2210 Date: Sun, 12 Jan 2025 15:12:41 -0800 Subject: [PATCH] deploy on cf pages --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ index.html | 9 +++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 index.html diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..df8ea7cdb --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +on: [push] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Publish to Cloudflare Pages + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Build + run: | + python3 -m venv .venv + CFLAGS=-O1 ./build.sh + cp index.html out + rm out/compiled.js + + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: b8079ffa92c97010f2a8d759e24cc782 + projectName: doompdf + directory: out \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 000000000..232015afc --- /dev/null +++ b/index.html @@ -0,0 +1,9 @@ + + + + + + +

Redirecting to /doom.pdf...

+ + \ No newline at end of file