4.0 KiB
4.0 KiB
Publishing to Gitea
Repository: 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:
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
- Open Gitea (via Tailscale or
git.masengr.com). - Sign in as Michael-A-Sloan (or create that user/org if this is a fresh install).
- New Repository
- Name:
PDF-Downloaders - Do not add README,
.gitignore, or license (empty repo)
- Name:
- Create.
2. Create a Personal Access Token
- Settings → Applications → Generate New Token
- Enable repo (and write:repository if listed)
- Copy the token — use it as the password when Git asks (username = your Gitea username)
3. Push from this PC
cd "C:\Users\Michael Sloan\Desktop\git\PDF-Downloaders"
.\recreate-on-gitea.ps1
Or over Tailscale only:
.\recreate-on-gitea.ps1 -RemoteUrl "http://tower:3000/Michael-A-Sloan/PDF-Downloaders.git"
4. Re-enable Actions / runners (new server)
- Site admin: enable Actions
- Register
act_runneragain on the new host (old registration tokens are invalid) - Labels for this project’s Linux CI:
ubuntu-latest(and Docker if using Wine Windows builds)
See Scribd/BUILD.md.
One-time: create a Personal Access Token
- Sign in at git.masengr.com (or Tailscale URL).
- Settings → Applications → Generate New Token
- 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:
# 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:
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).
- Enable Actions for the repo.
- Register a runner with label
ubuntu-latest(Docker recommended for Windows Wine builds). - Push to
mainor open Actions → Build Scribd → Run workflow. - Download artifacts:
scribd-linux,scribd-windows,scribd-windows-portable.
Details: Scribd/BUILD.md
Clone on another machine
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