Forgejo Action für sebaTEC Forge zum automatisierten Veröffentlichen statischer Webseiten. Akzeptiert Artefakte von Hugo, Astro oder anderen Static Site Generators und stellt eine Hosting-URL bereit. Ermöglicht fehlerfreies Deployment ohne manuellen Aufwand.
  • Go 66.1%
  • TypeScript 27.9%
  • Shell 4.9%
  • Makefile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-02 00:29:25 +00:00
.agents/skills/release-version chore(release-skill): harden moving-tag push 2026-08-22 20:28:30 +00:00
.forgejo/workflows chore(release-skill): harden moving-tag push 2026-08-22 20:28:30 +00:00
.husky chore(husky): drop deprecated shebang lines for v10 2026-06-30 20:48:44 +00:00
backend fix(deps): update module github.com/coreos/go-oidc/v3 to v3.21.0 (#35) 2026-09-02 00:29:25 +00:00
cleanup chore(release): bake v3.0.1 into action bundles 2026-08-22 14:54:09 +00:00
deploy chore(release): bake v3.0.1 into action bundles 2026-08-22 14:54:09 +00:00
docs chore(deps): bump config-mate to v2.0.1 2026-08-21 23:11:07 +00:00
get-config chore(release): bake v3.0.1 into action bundles 2026-08-22 14:54:09 +00:00
shared chore(deps): update dependency vitest to ^4.1.11 (#32) 2026-08-22 01:01:41 +00:00
.devcontainer.json chore(devcontainer): drop forge-webdav bind mount 2026-06-30 20:48:44 +00:00
.gitignore feat(backend): split into singlesite and multisite flavor binaries 2026-08-20 12:27:01 +00:00
.node-version refactor(ci): simplify e2e workflow by removing redundant build steps 2026-06-30 20:48:44 +00:00
.prettierignore chore: add hostsharing docs and update prettierignore 2026-06-30 20:50:51 +00:00
.prettierrc chore: add vitest, prettier, husky and e2e.sh for actions 2026-06-30 20:48:44 +00:00
AGENTS.md style(release): apply prettier formatting to release-notes guide 2026-08-20 16:46:36 +00:00
e2e.sh fix(e2e): use XDG-spec path for config-mate v2 2026-08-21 23:26:24 +00:00
LICENSE Initial commit 2026-06-28 09:50:02 +00:00
package-lock.json chore(deps): lock file maintenance (#34) 2026-08-31 00:19:49 +00:00
package.json chore(deps): update dependency prettier to v3.9.6 (#22) 2026-07-25 00:26:42 +00:00
README.md docs: restructure READMEs and add Diátaxis-compliant docs 2026-08-20 12:27:01 +00:00
renovate.json chore(config): migrate config renovate.json 2026-06-30 20:51:34 +00:00

Publish Static Site

Deploy static websites from Forgejo to your Hostsharing domain with zero configuration on our shared infrastructure.

Quickstart

Drop this workflow into your repository to get automatic preview deployments for every pull request on frg.stcld.eu:

name: Deploy Preview
on:
  pull_request:
concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  preview:
    if: env.ACTIONS_ID_TOKEN_REQUEST_URL != ''
    runs-on: debian-stable
    enable-openid-connect: true
    steps:
      - uses: https://forge.sebatec.eu/actions/checkout@v7
        with:
          submodules: recursive
          fetch-depth: 0

      - uses: https://forge.sebatec.eu/actions/setup-node@v6

      - name: Install dependencies
        run: npm ci

      - name: Get deploy URL
        id: get-config
        uses: https://forge.sebatec.eu/actions/publish-static-site/get-config@v1

      - name: Build
        run: npm run build
        env:
          ASTRO_SITE: ${{ steps.get-config.outputs.site_url }}

      - name: Deploy to server
        uses: https://forge.sebatec.eu/actions/publish-static-site/deploy@v1
        with:
          directory: dist

Every pull request automatically receives a unique preview URL like https://<owner>-<repo>-<hash>.frg.stcld.eu. These URLs are cleaned up automatically when the pull request is closed.

Use Cases

  • Preview pull requests with automatic subdomains.
  • Deploy a single site to your own domain.
  • Host multiple sites under one domain with custom paths.

Prerequisites

  • Forgejo OIDC must be enabled for these actions to work. Set enable-openid-connect: true at the workflow or job level.

Learn More

Contributing

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-branch
    
  3. Make your changes and commit them:
    git commit -m "Description of your changes"
    
  4. Push to your fork:
    git push origin feature-branch
    
  5. Create a pull request.