# Publishing to Gitea Repository: [https://git.masengr.com/Michael-A-Sloan/PDF-Downloaders](https://git.masengr.com/Michael-A-Sloan/PDF-Downloaders) The Scribd downloader lives in the **`Scribd/`** folder. --- ## Tailscale access Gitea is also reachable over Tailscale from this network: | URL | Use | |-----|-----| | `https://git.masengr.com` | Public / DNS (preferred when nginx is set up) | | `http://tower:3000` | Tailscale hostname (`tower` = `100.73.158.0`) | | `http://100.73.158.0:3000` | Tailscale IP | Git remote examples: ```powershell git remote set-url origin https://git.masengr.com/Michael-A-Sloan/PDF-Downloaders.git # or over Tailscale: git remote set-url origin http://tower:3000/Michael-A-Sloan/PDF-Downloaders.git ``` --- ## After replacing the Gitea server Your local `PDF-Downloaders` folder already has full git history. On the new server: ### 1. Create an empty repo in Gitea 1. Open Gitea (via Tailscale or `git.masengr.com`). 2. Sign in as **Michael-A-Sloan** (or create that user/org if this is a fresh install). 3. **New Repository** - Name: `PDF-Downloaders` - **Do not** add README, `.gitignore`, or license (empty repo) 4. Create. ### 2. Create a Personal Access Token 1. **Settings → Applications → Generate New Token** 2. Enable **repo** (and **write:repository** if listed) 3. Copy the token — use it as the **password** when Git asks (username = your Gitea username) ### 3. Push from this PC ```powershell cd "C:\Users\Michael Sloan\Desktop\git\PDF-Downloaders" .\recreate-on-gitea.ps1 ``` Or over Tailscale only: ```powershell .\recreate-on-gitea.ps1 -RemoteUrl "http://tower:3000/Michael-A-Sloan/PDF-Downloaders.git" ``` ### 4. Re-enable Actions / runners (new server) 1. Site admin: enable **Actions** 2. Register `act_runner` again on the new host (old registration tokens are invalid) 3. Labels for this project’s Linux CI: `ubuntu-latest` (and Docker if using Wine Windows builds) See [Scribd/BUILD.md](Scribd/BUILD.md#ci-builds-gitea--github-actions). --- ## One-time: create a Personal Access Token 1. Sign in at [git.masengr.com](https://git.masengr.com) (or Tailscale URL). 2. **Settings → Applications → Generate New Token** 3. Enable **repo** scope; copy the token. Use the token as your **password** when `git push` asks for credentials (username = your Gitea username). --- ## Publish (Windows) From PowerShell: ```powershell # Step 1 — copy latest Scribd source into this repo cd "C:\Users\Michael Sloan\Desktop\git\Scribe PDF Downloader" .\scripts\sync-to-pdf-downloaders.ps1 # Step 2 — commit and push cd "C:\Users\Michael Sloan\Desktop\git\PDF-Downloaders" .\push-to-gitea.ps1 ``` --- ## If the remote repo already has commits Pull first, then push: ```powershell cd "C:\Users\Michael Sloan\Desktop\git\PDF-Downloaders" git pull origin main --allow-unrelated-histories .\push-to-gitea.ps1 ``` --- ## Folder layout on Gitea ``` PDF-Downloaders/ ├── README.md ← this collection overview ├── .gitignore ├── GITEA.md ├── push-to-gitea.ps1 ├── recreate-on-gitea.ps1 └── Scribd/ ← Scribd PDF Downloader (full project) ├── README.md ├── gui.py ├── main.py ├── scribd_downloader/ └── ... ``` --- ## CI builds (Actions) Workflows in `.gitea/workflows/` build on your Linux runner (Linux app + Windows packages). 1. Enable **Actions** for the repo. 2. Register a runner with label `ubuntu-latest` (Docker recommended for Windows Wine builds). 3. Push to `main` or open **Actions → Build Scribd → Run workflow**. 4. Download artifacts: `scribd-linux`, `scribd-windows`, `scribd-windows-portable`. Details: [Scribd/BUILD.md](Scribd/BUILD.md#ci-builds-gitea--github-actions) --- ## Clone on another machine ```bash git clone https://git.masengr.com/Michael-A-Sloan/PDF-Downloaders.git # or via Tailscale: git clone http://tower:3000/Michael-A-Sloan/PDF-Downloaders.git cd PDF-Downloaders/Scribd # follow Scribd/INSTALL.md ```