Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expstaticgithub

Ein Ziel des statischen Veröffentlichens auf GitHub einrichten (das Repository, GitHub Pages aus dem Branch oder mit Actions, die eigene Domain, HTTPS), seinen Zustand dort zeigen oder sich bei GitHub anmelden.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expstaticgithub.md

On this page

This page is a translation. Read the English original

exp:expstaticgithub

Ein Ziel des statischen Veröffentlichens auf GitHub einrichten (das Repository, GitHub Pages aus dem Branch oder mit Actions, die eigene Domain, HTTPS), seinen Zustand dort zeigen oder sich bei GitHub anmelden.

Skript bin/php/expstaticgithub.php, Code in kernel/private/classes/commands/expstaticgithub.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expstaticgithub --help
./console exp:static:github --help
php bin/php/expstaticgithub.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

GitHub for a static publishing target
setup creates the repository when asked (--create-repo, public unless --private), switches GitHub Pages
on from the target's branch and folder or from GitHub Actions, and sets the custom domain and HTTPS.
status shows the repository, GitHub Pages and the state of the last Pages build. Both sign in with the
target's Credential (token: or app:). signin signs a user in with GitHub (an OAuth App's device flow,
[StaticPublishSettings] GitHubOAuthClientId) and keeps the token as the secret --secret.

./console exp:static:github setup github-public --create-repo
./console exp:static:github setup github-public --pages=actions --plan
./console exp:static:github status github-public
./console exp:static:github signin --secret=github_pages_token

Optionen

OptionWertHilfe
--create-reposetup: das Repository anlegen, wenn es fehlt (leer; die erste Veröffentlichung füllt es)
--publicMit --create-repo: ein öffentliches Repository (der Standard; GitHub Pages im kostenlosen Tarif braucht eines)
--privateMit --create-repo: ein privates Repository (GitHub Pages liefert es nur mit einem bezahlten Tarif aus)
--pageserforderlichsetup: branch oder actions statt der Delivery des Ziels, oder off, um GitHub Pages so zu lassen, wie es ist
--domainerforderlichsetup: diese eigene Domain statt der CustomDomain des Ziels (none entfernt sie)
--no-httpssetup: HTTPS für die eigene Domain nicht erzwingen
--plansetup: nur sagen, was getan würde, nichts ändern
--client-iderforderlichsignin: die Client-ID der OAuth App (Standard [StaticPublishSettings] GitHubOAuthClientId)
--secreterforderlichsignin: der Name des Geheimnisses, unter dem das Token abgelegt wird (Setup > Secrets); das Ziel nennt es als Credential=token:<secret>
--formaterforderlichtext (Standard) oder json (die Maschinenausgabe exp-static/1)

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Argumente: [action][target].

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expstaticgithub.php, kernel/private/classes/commands/expstaticgithub.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x