85 lines
2.1 KiB
Markdown
85 lines
2.1 KiB
Markdown
# 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.
|
|
|
|
---
|
|
|
|
## One-time: create a Personal Access Token
|
|
|
|
1. Sign in at [git.masengr.com](https://git.masengr.com).
|
|
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
|
|
└── Scribd/ ← Scribd PDF Downloader (full project)
|
|
├── README.md
|
|
├── gui.py
|
|
├── main.py
|
|
├── scribd_downloader/
|
|
└── ...
|
|
```
|
|
|
|
---
|
|
|
|
## CI builds (Actions)
|
|
|
|
Workflows in `.gitea/workflows/` build **Windows, macOS, and Linux** packages on push to `main`.
|
|
|
|
1. Enable **Actions** for the repo on git.masengr.com.
|
|
2. Use the same runner labels as your other repos: `ubuntu-latest`, `windows-latest`, `macos-latest`.
|
|
3. Push to `main` or open **Actions → Build Scribd → Run workflow**.
|
|
4. Download artifacts: `scribd-windows`, `scribd-macos`, `scribd-linux`.
|
|
|
|
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
|
|
cd PDF-Downloaders/Scribd
|
|
# follow Scribd/INSTALL.md
|
|
```
|