Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .env.example

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Deploy Images→PDF tool to Pages

on:
push:
branches: ["main", "master", "claude/images-to-pdf-tool-SSHIS"]
paths:
- "public/images-to-pdf.html"
- ".github/workflows/pages.yml"
workflow_dispatch:

permissions:
contents: write
pages: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Assemble site
run: |
mkdir -p _site
cp public/images-to-pdf.html _site/index.html
# Make the page discoverable at the repo root path
touch _site/.nojekyll

- name: Publish to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
force_orphan: true
commit_message: "Deploy Images→PDF tool"

- name: Enable GitHub Pages (gh-pages branch source)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
# Create the Pages site with gh-pages as source; ignore 409 if already configured.
code=$(curl -s -o /tmp/pages_create.json -w "%{http_code}" \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${REPO}/pages" \
-d '{"source":{"branch":"gh-pages","path":"/"}}' || true)
echo "create status: $code"
cat /tmp/pages_create.json || true
if [ "$code" != "201" ] && [ "$code" != "409" ]; then
# Try to update (PUT) in case Pages is already enabled from a different source
code2=$(curl -s -o /tmp/pages_update.json -w "%{http_code}" \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${REPO}/pages" \
-d '{"source":{"branch":"gh-pages","path":"/"}}' || true)
echo "update status: $code2"
cat /tmp/pages_update.json || true
fi

- name: Print site URL
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
curl -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${REPO}/pages" | tee /tmp/pages.json
url=$(grep -o '"html_url":[[:space:]]*"[^"]*"' /tmp/pages.json | head -1 | sed 's/.*"html_url":[[:space:]]*"\([^"]*\)".*/\1/')
echo "Pages URL: $url"
19 changes: 19 additions & 0 deletions IMPORTANT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pubkey: rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A

devote lion melody erode camp boss length seek hungry sleep fence coconut


candy machine with publickey: DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx

{"program":{"uuid":"DgNrs5","config":"DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx"},"items":{"0":{"link":"https://arweave.net/XUq2M_D13Dj0ovffeHs54PVxO0VsJZzWiQjE_TxnUn4","name":"NFT 0","onChain":true},"1":{"link":"https://arweave.net/QXO6BWR8t91P9qTQG2zyiRL2hasSR7PuPmA3dSPbUZ4","name":"NFT 1","onChain":true}},"env":"devnet","cacheName":"temp","authority":"rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A"}


candy machine pubkey: Emt7aNgcuKwtAtyhctAyxAsH7PjaXpSPDy9kTnbwsu8z

timestamp: 983401200


must lens beach armed judge typical outside brain start beef discover will

http://localhost:3000
On Your Network: http://192.168.56.1:3000
Loading