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